Snotra Logo
snotra
Ready to go GraphQL Libraries
Hasura Parser
Utility library for parsing data from Hasura events and actions

Easily parse data from Hasura actions and events:

  • Fetch only data you need from any event or action
  • Parse session variables
  • Parse trace actions

To install:

$ npm i @snotra/hasura-parser
Cache
Server side Per-Field caching out of the box

Add cache to your query objects by using a simple directive:

type Book @snotra_cache(ttl: 50) {
	title: String @snotra_cache(ttl: 10)
	author: Author
}

With the directive you can:

  • Cache queries
  • Only refetch fields where TTL has passed
  • Automatically apply middleware to your queries

I presented the solution outline at GraphQL Summit 2019.

Unfortunately I never successfully decoupled it to open source it.

Now I restarted development with the latest GraphQL specs in mind.

Stay tuned!