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

Query.graph <- Query.users

parent 278efb54
...@@ -33,7 +33,7 @@ type User implements Glyph { ...@@ -33,7 +33,7 @@ type User implements Glyph {
# Main # Main
type Query { type Query {
graph: [Glyph!]! users: [User!]!
} }
input CreateUserInput { input CreateUserInput {
......
...@@ -397,7 +397,7 @@ ...@@ -397,7 +397,7 @@
"description": null, "description": null,
"fields": [ "fields": [
{ {
"name": "graph", "name": "users",
"description": null, "description": null,
"args": [], "args": [],
"type": { "type": {
...@@ -410,8 +410,8 @@ ...@@ -410,8 +410,8 @@
"kind": "NON_NULL", "kind": "NON_NULL",
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "INTERFACE", "kind": "OBJECT",
"name": "Glyph", "name": "User",
"ofType": null "ofType": null
} }
} }
......
...@@ -2,5 +2,5 @@ import { defaultGraphFieldResolver } from '../../../gql-graph/graphqlResolver' ...@@ -2,5 +2,5 @@ import { defaultGraphFieldResolver } from '../../../gql-graph/graphqlResolver'
import { QueryResolvers } from '../../types' import { QueryResolvers } from '../../types'
export const Query: QueryResolvers = { export const Query: QueryResolvers = {
graph: defaultGraphFieldResolver(), users: defaultGraphFieldResolver(),
} }
...@@ -50,7 +50,7 @@ export type User = Glyph & { ...@@ -50,7 +50,7 @@ export type User = Glyph & {
export type Query = { export type Query = {
__typename: 'Query'; __typename: 'Query';
graph: Array<Glyph>; users: Array<User>;
}; };
export type CreateUserInput = { export type CreateUserInput = {
...@@ -242,7 +242,7 @@ export type UserResolvers<ContextType = Context, ParentType extends ResolversPar ...@@ -242,7 +242,7 @@ export type UserResolvers<ContextType = Context, ParentType extends ResolversPar
}; };
export type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = { 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']> = { 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