Add metadata query resolvers (#1929)

* Add metadata queries resolvers

* remove hello field

* fix linter
This commit is contained in:
Weiko
2023-10-09 22:54:14 +02:00
committed by GitHub
parent 34d3c452c1
commit ca492808cf
9 changed files with 290 additions and 26 deletions

View File

@ -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) },
},