Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

FQL + NextJS serializing JSON errors #13

Closed
dsbrianwebster opened this issue Apr 29, 2021 · 2 comments
Closed

FQL + NextJS serializing JSON errors #13

dsbrianwebster opened this issue Apr 29, 2021 · 2 comments

Comments

@dsbrianwebster
Copy link

@pbteja1998 great work on this starter! There are many examples out there with GraphQL and Fauna, but there is so much more one can do with FQL directly, so it is great to see some examples with NextJS and FQL 馃憦

It may be slightly outside the goals of a starter, but I'm very curious to see some examples of working with React Query + FQL + getStaticProps. I really run into a lot of pain points at this step in the process because fauna document expressions like Ref and Time get me into Error serializing .dehydratedState.queries hell. It is frustrating to have to reformat the fauna response just I can pass it through as props. Would love to see how you proceed here, perhaps some basic examples added to the readme?

@pbteja1998
Copy link
Owner

@dsbrianwebster Thanks!

May be not in the repo, but I will publish a blog post related to this soon. Will link that blog post here after I publish it.

If you want, you can also take a look at the repo of https://coderplex.org which is developed by me.

Specifically take a look at the following file.
https://github.com/coderplex-org/coderplex-org/blob/beta/src/utils/fauna.ts

You can get some ideas of how I handled those cases there. I have since then discovered some easier ways to handle these cases. Will add all of these in the blog post soon.

@dsbrianwebster
Copy link
Author

Thanks @pbteja1998! Will have a look and will keep an eye out for that forthcoming blog post. 馃憦 once again on a fantastic starter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants