We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just putting some thoughts down of currently missing features:
Relay wants to be able to (re-)fetch any object in the graph by a unique ID via a root query named node:
node
node (id: "user123") { id name }
Relay methods: fromGlobalId/toGlobalId See: https://github.com/relayjs/relay-starter-kit/blob/master/data/schema.js#L115
fromGlobalId
toGlobalId
On the query side, relay requires first and after arguments (as well as last and before for backwards pagination):
first
after
last
before
users (first: 10, after: "user123") { edges { cursor node { id name } } pageInfo { hasNextPage } }
edges
cursor
pageInfo
hasNextPage
hasPreviousPage
Also see: https://facebook.github.io/relay/graphql/connections.htm
TBC
I expect graphql-relay-js to help us out with the more intricate details
I hope we can work towards relay compatibility. Please let me know if this is more appropriate for an adapter, e.g. graffiti-mongoose
graffiti-mongoose
The text was updated successfully, but these errors were encountered:
Moved this to RisingStack/graffiti-mongoose#22 as it's purely a schema builder issue.
Feel free to re-open if you want to keep this to a wider audience.
Sorry, something went wrong.
No branches or pull requests
Just putting some thoughts down of currently missing features:
Unique Object IDs
Relay wants to be able to (re-)fetch any object in the graph by a unique ID via a root query named
node
:Relay methods:
fromGlobalId
/toGlobalId
See: https://github.com/relayjs/relay-starter-kit/blob/master/data/schema.js#L115
Pagination
On the query side, relay requires
first
andafter
arguments (as well aslast
andbefore
for backwards pagination):edges
: describes the collection (https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types)**
cursor
: would be the unique ID discusses above**
node
: the box-standard field selectorpageInfo
: an object with meta-data about the current page (https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo)**
hasNextPage
**
hasPreviousPage
: for backwards paginationAlso see: https://facebook.github.io/relay/graphql/connections.htm
Mutation
TBC
I expect graphql-relay-js to help us out with the more intricate details
I hope we can work towards relay compatibility. Please let me know if this is more appropriate for an adapter, e.g.
graffiti-mongoose
The text was updated successfully, but these errors were encountered: