Scalar Date #148
Scalar Date
#148
Replies: 4 comments 2 replies
-
Nice! This is a great example of how to create a custom scalar! Just as a heads up, I think there's built-in support for Date scalars - Check out the schema in this Graphiti test Which is a good reminder that we could probably use some documentation in the Usage Guide for Date scalars. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I actually needed help in using the date scalar, the windsurfer ide provided the code so I was able to get some understanding of the graphiti code? I still need a concrete example of using date, I am using the Graphql Example in the humming bird project repo as a test casehummingbird-examples/graphql-server at main · hummingbird-project/hummingbird-examplesgithub.comsight media lab.On Nov 19, 2024, at 12:50 AM, Jay Herron ***@***.***> wrote:
Nice! This is a great example of how to create a custom scalar!
Just as a heads up, I think there's built-in support for Date scalars - Check out the schema in this Graphiti test
Which is a good reminder that we could probably use some documentation in the Usage Guide for Date scalars.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Thankssight media lab.On Nov 24, 2024, at 3:06 PM, Jay Herron ***@***.***> wrote:
I still need a concrete example of using date
Check out that test I linked (here's the link again again). That's how you use it - Just declare a Date.self scalar in your schema. The serialization format of the date is controlled by the coder settings.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Close this discussion, your solution to look at the tests was what I needed.,sight media lab.On Nov 24, 2024, at 3:12 PM, Jay Herron ***@***.***> wrote:
What do you mean by "concrete"? That test shows how to create a schema with a Date, and return it as a type from the resolver.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i could not find examples or documenattion for adding date to my entity definitions
Beta Was this translation helpful? Give feedback.
All reactions