Connect to the SpaceX GraphQL API

  1. In the Hasura Console click the Remote Schema tab and click Add

  2. The name can be anything you'd like, such as SpaceXGraphql, while the URL is https://api.spacex.land/graphql/

  3. One type from the SpaceX schema conflicts with the schema Hasura generates so we need to fix that

    1. Navigate to the modify tab and at the bottom click Modify

    2. Under GraphQL Customizations click Add and under Rename Type Names select String_comparison_exp, rename it something else like String_comparison_exp_spacex

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
Promo
footer illustration
Brand logo
© 2024 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin
graphql-handbook