• Public
  • Public/Protected
  • All

Interface GraphQLServiceSettings

Settings to control the GraphQLService behavior.


  • GraphQLServiceSettings



Optional disableAuthentication

disableAuthentication: boolean

Disables authentication for graphql endpoints. This may be useful when you are developing the app and want a more relaxed exploring experience. If you're using studio to explore the graphql API and responses, it will handle authentication for you, so there's no need to disable it.

Optional disableExplorer

disableExplorer: boolean

Disables the grahpiql explorer endpoint (/grahpql/explore).

Optional realmCacheMaxAge

realmCacheMaxAge: number

The number in milliseconds which a Realm will be kept open after a request has completed. Higher values mean that more Realms will be kept in the cache, drastically improving the response times of requests hitting "warm" Realms. This, however, comes at the cost of increased memory usage. Default is 120000 (2 minutes).

Optional schemaCacheSettings

schemaCacheSettings: SchemaCacheSettings | "NoCache"

Settings controlling the schema caching strategy. If set to 'NoCache', Realm schemas will not be cached and instead generated on every request. This is useful while developing and schemas may change frequently, but drastically reduces performance. If not set, or set to SchemaCacheSettings instance, schemas will be cached.