-
Notifications
You must be signed in to change notification settings - Fork 2k
Schema, handling many-to-many queries #173
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
You can define a const User = new GraphQLObjectType({
name: 'User',
fields: () => ({
groups: {
type: new GraphQLList(Group)
}
})
});
const Group = new GraphQLObjectType({
name: 'Group',
fields: () => ({
users: {
type: new GraphQLList(User)
}
})
}); How the |
@freiksenet is dead on - closing this task. |
For those who (like me) stumble on this page from Google, instead of a list, consider connections for the pagination benefits: https://facebook.github.io/relay/docs/graphql-connections.html -- see also graphql/graphql-relay-js#20 |
How about making mutations? |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
I have a problem with this specific scenario, and have not found much documentation. How in JS can i make a schema that allows me to query many to many ObjectTypes?
The text was updated successfully, but these errors were encountered: