Exposed comment and meta fields in GraphQL API.
This commit is contained in:
@@ -7,6 +7,11 @@ import {
|
||||
GraphQLScalarType,
|
||||
} from 'graphql';
|
||||
|
||||
import {
|
||||
JSONDefinition,
|
||||
JSONResolver,
|
||||
} from 'graphql-scalars';
|
||||
|
||||
import {
|
||||
scenesSchema,
|
||||
fetchScenesGraphql,
|
||||
@@ -69,6 +74,8 @@ const schema = buildSchema(`
|
||||
|
||||
scalar Date
|
||||
|
||||
${JSONDefinition}
|
||||
|
||||
${scenesSchema}
|
||||
${moviesSchema}
|
||||
${actorsSchema}
|
||||
@@ -118,6 +125,7 @@ export async function graphqlApi(req, res) {
|
||||
resolvers: {
|
||||
DateTimeScalar,
|
||||
DateScalar,
|
||||
JSON: JSONResolver,
|
||||
},
|
||||
rootValue: {
|
||||
// queries
|
||||
|
||||
Reference in New Issue
Block a user