-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I've been trying to use the graphql-iso-date
package with graphql-s2s
for DateTime
formatting on types and get this error:
TypeError: Cannot read property 'directive' of null
Is this a known issue, or is there a workaround? My typeDefs file looks like this:
export const commonTypeDefs = `
scalar DateTime
type Timestamps {
created: DateTime
started: DateTime
modified: DateTime
completed: DateTime
}`
resolvers:
import { GraphQLDateTime } from "graphql-iso-date"
export const resolvers = {
DateTime: GraphQLDateTime,
Query: {
...
}
and my index merging:
import { makeExecutableSchema } from 'graphql-tools'
import commonTypeDefs from './commonTypeDefs'
const { transpileSchema } = require('graphql-s2s').graphqls2s
import typeDefs from './typeDefs.gql'
import { resolvers } from './resolvers'
export const workSchema = makeExecutableSchema({
typeDefs: [transpileSchema(commonTypeDefs), typeDefs],
resolvers
})
Metadata
Metadata
Assignees
Labels
No labels