-
Notifications
You must be signed in to change notification settings - Fork 160
could not add custom dateTime #16
Comments
@chaymag could you try again now with the updated version? I've updated the version of neo4j-graphql.js used which should include support for custom scalars. Also, we're working on adding proper DateTime support to neo4j-graphql.js soon, so once this is merged in a custom scalar won't be needed and will work out of the box with the Neo4j temporal types. |
I've updated neo4j-graphql-js to ^1.0.5 and I'm still having the same issue @chaymag originally reported while attempting to use the DateTime custom scalar within the okgrow/graphql-scalars package , as well as the issues I've outlined in issue #15. |
This is due to the starter using makeAugmenentedSchema() where the install instructions for DateTime are using makeExecutableSchema. After spending more time on this than I care to admit, I have it working. Here is my index.js
|
Hello , i'm trying to add dateTime scalar, i followed this tuto https://www.okgrow.com/posts/using-scalar-types-to-improve-graphql-schemas , i populated my seeder with data, added a dateTime field to my type and inserted some data with created_at as dateTime but when i execute npm start i get the following error " throw new Error('Type "' + typeRef.name.value + '" not found in document.');
^
Error: Type "DateTime" not found in document."
I can't figure out what causes this error.
The text was updated successfully, but these errors were encountered: