Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodlenet
nodejs-services
Commits
4aab0b87
Commit
4aab0b87
authored
Oct 15, 2020
by
aleclofabbro
Browse files
Query.graph <- Query.users
parent
278efb54
Changes
4
Hide whitespace changes
Inline
Side-by-side
graphql/schema.graphql
View file @
4aab0b87
...
@@ -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
{
...
...
src/gql/graphql.schema.json
View file @
4aab0b87
...
@@ -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
}
}
}
}
...
...
src/gql/resolvers/query/index.ts
View file @
4aab0b87
...
@@ -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
(),
}
}
src/gql/types.ts
View file @
4aab0b87
...
@@ -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
'
]
>
=
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment