Merging and removing duplicate query resolvers. #1087
Replies: 3 comments 1 reply
-
@palisadoes @xoldyckk @DMills27 the discussion can be continued here. I have summarised the discussion from #1075 in the description. |
Beta Was this translation helpful? Give feedback.
-
@xoldyckk @palisadoes continuing the discussion here.
|
Beta Was this translation helpful? Give feedback.
-
@beingnoble03 I personally think that all objects which are uniquely identifiable in the database should be exposed using node interface and nested relations. So, instead of having a seperate root Query field like For a graphql server schema like this:-
We'd query the events for a particular organization like this:-
You see, we don't need to expose plethora of root Query fields just for every relation of an object. They can simply be queried using the node interface query field. I think we need a complete overhaul of the currently present graphql schema and reimplement it to better represent relationships between fields and also expose additional fields whereever required which are not represented in the database itself. |
Beta Was this translation helpful? Give feedback.
-
talawa-api
has no correct implementation of relay graphql cursor connection. (See the documentation here)where
as a parameter, but there are many pairs of query resolvers likeexample
andexampleConnection
which obviously are similar to each other.example
can be easily done byexampleConnection
.What would be the right strategy to make this change happen?
Beta Was this translation helpful? Give feedback.
All reactions