You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a great library, was wondering if there is implement types from Node which is required for graphql-relay and the connections.
var userType = new GraphQLObjectType({
name: 'User',
description: 'A person who uses our app',
fields: () => ({
id: globalIdField('User'),
firstName: {
type: GraphQLString,
description: "First Name of user"
},
lastName: {
type: GraphQLString,
description: "Last Name of user"
}
}),
interfaces: [nodeInterface],
});
//How to specify interfaces:[nodeInterface] ?
The text was updated successfully, but these errors were encountered:
@Vani-gurnani interfaces are determined by just writing them in the graphql type definitions, and then adding a resolveType on the interface definition object:
This is a great library, was wondering if there is implement types from Node which is required for graphql-relay and the connections.
var userType = new GraphQLObjectType({
name: 'User',
description: 'A person who uses our app',
fields: () => ({
id: globalIdField('User'),
firstName: {
type: GraphQLString,
description: "First Name of user"
},
lastName: {
type: GraphQLString,
description: "Last Name of user"
}
}),
interfaces: [nodeInterface],
});
//How to specify interfaces:[nodeInterface] ?
The text was updated successfully, but these errors were encountered: