great vides!!! The URQL, CodeGen looks really good to me for more managed type defs and organized gql queries, mutation and real time subscriptions. quick question here: how secure admin_secret_key to protect graphql endpoint? it that possible to dynamic the key? since, we controls tables access via code not hard-code the roles. anyway, thanks for wonderful solution sharing.
With the paid accounts of Hasura cloud you can define multiple Hasura Admin Secrets, you can also create service-level "roles" and generate non-expiring or long-expiring JWTs for them like you would for a user. The Admin secret should be kept as secure as possible because it lets you do full CRUD on your Hasura project.
Hey, can you share the GitHub code for this series? I'm getting an error when I'm setting the value from the response to a value attribute of the form. This is the error: "Type 'string | null | undefined' is not assignable to type 'string | number | readonly string[] | undefined'. Type 'null' is not assignable to type 'string | number | readonly string[] | undefined'.ts(2322)." OK, that's clear. The types generated by GraphQL are different from what the value attribute is expecting.
Here's the code base, see if that solve your problem, if not, reach out on Discord! The author's username is jmart. github.com/hasura/build-with-hasura-byp
Hi Jessie, these video tutorials are great resources for learning type safe graphQl. However at the time of writing this, I found the graphql-codegen tools very different than the video. It kinda shows that the ecosystem is constantly evolving. Nevertheless, the Hasura docs really came to my rescue which contained the updated documentation for working with codegen.ts files as well. Thanks.
This comment only makes sense for a GraphQL audience! 😄 The Codegen team did just release a "sensible defaults" version which simplifies this a lot! I'll be release an updated video soon on how to migrate to the simpler stack. Codgen, so much config, but then after… so much type safety!
this is what i am looking for thanks for video
Glad I could help!
great vides!!! The URQL, CodeGen looks really good to me for more managed type defs and organized gql queries, mutation and real time subscriptions. quick question here: how secure admin_secret_key to protect graphql endpoint? it that possible to dynamic the key? since, we controls tables access via code not hard-code the roles. anyway, thanks for wonderful solution sharing.
With the paid accounts of Hasura cloud you can define multiple Hasura Admin Secrets, you can also create service-level "roles" and generate non-expiring or long-expiring JWTs for them like you would for a user. The Admin secret should be kept as secure as possible because it lets you do full CRUD on your Hasura project.
Hey, can you share the GitHub code for this series?
I'm getting an error when I'm setting the value from the response to a value attribute of the form. This is the error: "Type 'string | null | undefined' is not assignable to type 'string | number | readonly string[] | undefined'. Type 'null' is not assignable to type 'string | number | readonly string[] | undefined'.ts(2322)."
OK, that's clear. The types generated by GraphQL are different from what the value attribute is expecting.
Here's the code base, see if that solve your problem, if not, reach out on Discord! The author's username is jmart.
github.com/hasura/build-with-hasura-byp
Hi Jessie, these video tutorials are great resources for learning type safe graphQl. However at the time of writing this, I found the graphql-codegen tools very different than the video. It kinda shows that the ecosystem is constantly evolving. Nevertheless, the Hasura docs really came to my rescue which contained the updated documentation for working with codegen.ts files as well. Thanks.
Thanks! I'll see if I can post a new video for the updated docs. Yes, GraphQL is very much alive!
I thought StrawberryShake codegen of ChilliCream Hotchocolate team was difficult. This is even worse 🤣🤣
This comment only makes sense for a GraphQL audience! 😄 The Codegen team did just release a "sensible defaults" version which simplifies this a lot! I'll be release an updated video soon on how to migrate to the simpler stack. Codgen, so much config, but then after… so much type safety!