Add metadata query resolvers (#1929)
* Add metadata queries resolvers * remove hello field * fix linter
This commit is contained in:
@ -1,9 +1,5 @@
|
||||
import {
|
||||
GraphQLBoolean,
|
||||
GraphQLNonNull,
|
||||
GraphQLObjectType,
|
||||
GraphQLString,
|
||||
} from 'graphql';
|
||||
import { ConnectionCursorScalar } from '@ptc-org/nestjs-query-graphql';
|
||||
import { GraphQLBoolean, GraphQLNonNull, GraphQLObjectType } from 'graphql';
|
||||
|
||||
/**
|
||||
* GraphQL PageInfo type.
|
||||
@ -11,8 +7,8 @@ import {
|
||||
export const PageInfoType = new GraphQLObjectType({
|
||||
name: 'PageInfo',
|
||||
fields: {
|
||||
startCursor: { type: GraphQLString },
|
||||
endCursor: { type: GraphQLString },
|
||||
startCursor: { type: ConnectionCursorScalar },
|
||||
endCursor: { type: ConnectionCursorScalar },
|
||||
hasNextPage: { type: new GraphQLNonNull(GraphQLBoolean) },
|
||||
hasPreviousPage: { type: new GraphQLNonNull(GraphQLBoolean) },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user