Commit 4aab0b87 authored by aleclofabbro's avatar aleclofabbro
Browse files

Query.graph <- Query.users

parent 278efb54
......@@ -33,7 +33,7 @@ type User implements Glyph {
# Main
type Query {
graph: [Glyph!]!
users: [User!]!
}
input CreateUserInput {
......
......@@ -397,7 +397,7 @@
"description": null,
"fields": [
{
"name": "graph",
"name": "users",
"description": null,
"args": [],
"type": {
......@@ -410,8 +410,8 @@
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INTERFACE",
"name": "Glyph",
"kind": "OBJECT",
"name": "User",
"ofType": null
}
}
......
......@@ -2,5 +2,5 @@ import { defaultGraphFieldResolver } from '../../../gql-graph/graphqlResolver'
import { QueryResolvers } from '../../types'
export const Query: QueryResolvers = {
graph: defaultGraphFieldResolver(),
users: defaultGraphFieldResolver(),
}
......@@ -50,7 +50,7 @@ export type User = Glyph & {
export type Query = {
__typename: 'Query';
graph: Array<Glyph>;
users: Array<User>;
};
export type CreateUserInput = {
......@@ -242,7 +242,7 @@ export type UserResolvers<ContextType = Context, ParentType extends ResolversPar
};
export type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = {
graph: Resolver<Array<ResolversTypes['Glyph']>, ParentType, ContextType>;
users: Resolver<Array<ResolversTypes['User']>, ParentType, ContextType>;
};
export type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']> = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment