This is the first part of blog post series where we will create blog cms using Hasura for GraphQL API, and serverless functions for logic and on th...
For further actions, you may consider blocking this person and/or reporting abuse
Looks like you don't have the user field set up on posts type. You have user_id so how would you return the name and avatar from the
userstable?this query doesnt work if i have the same set up as you:
Solution is tracking the foreign keys on your tables. See:docs.hasura.io/1.0/graphql/manual/...
Not exactly. an easier solution is what I wrote. You need to add relationships in relationships tab. I added a screenshot to clarify
Nice article!
One small thing though about this part
The result already comes typed but as a bound object (
{ . "etc": int}) so saying "to receive the result typed" can be a bit confusing for beginners IMOI would always prefer Reason over typescript because you actually don’t need to type lots of things because compiler will infer types, but you have to be aware of the fact that Reason only looks like JavaScript. It’s way more powerful but you need to understand functional programming constructs such as pattern matching, variants and more. I suggest checking my YouTube channel for 10h ReasonML bootcamp that will cover the basics and even some advanced parts of ReasonML. And soon there will be more content on ReasonReact so stay tuned.
It's "Hindley Milner", not "Hindler Miller" type system.
It was 4 days online bootcamp 3+ h every day.