cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Trying to implement dates in my Augmented Schema using neo4j-graphql-js

MuddyBootsCode
Graph Steward

I'm using the GRAND stack starter to create a new project. I've been able to get quite a bit done with it. However, using the auto-generated schema if I try to use Date as a data type, this causes an error:

I've tried a number of variations i.e. DateString, DateTime and always with the same result. the type I'm trying to create looks like:
2X_d_d9b8c8b1164e6ec1b23b9c69015a216179cecdfb.jpeg

Has anyone run into a similar issue?

1 ACCEPTED SOLUTION
4 REPLIES 4

William_Lyon
Graph Fellow

Hey Michael -

We haven't yet added Date types to neo4j-graphql.js - but we plan on doing this soon! (as well as the geospatial types, which is just Point for now).

In the mean time you could treat dates as a string or define a custom scalar in your GraphQL schema for date:

scalar Date

Hope that helps.

Is there any timeframe for this?

MuddyBootsCode
Graph Steward

This is implemented now