Plasmic’s Newsletter

Share this post

Fetch data from REST and GraphQL APIs

plasmic.substack.com

Fetch data from REST and GraphQL APIs

Team Plasmic
Sep 28, 2022
5
Share this post

Fetch data from REST and GraphQL APIs

plasmic.substack.com

REST and GraphQL API fetchers

You can now build using dynamic data from REST/HTTP API and GraphQL endpoints.

For REST, this includes the ability to specify headers to pass in to the endpoints, specify route/query params, pass in body data, and more. For GraphQL, you are able to use the interactive GraphiQL schema explorer to construct your query.

As with all Plasmic data fetchers, these work with static and server-side pre-rendering.

Check out our video tutorials for more details!

And more

  • Can now reference variants in dynamic values. For instance, you can reference whether the current component has variant “Size” being “Small” or “Large,” or whether the “Is Primary” toggle variant is activated.

  • Selection box and sizing/spacing controls are now refreshed.

  • Optimized images are now content-hashed with longer expiry.

Share this post

Fetch data from REST and GraphQL APIs

plasmic.substack.com
Comments
TopNew

No posts

Ready for more?

© 2023 Plasmic
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing