next-drupal / DrupalClientOptions

Type Alias: DrupalClientOptions

DrupalClientOptions: NextDrupalOptions & object

Defined in: packages/next-drupal/src/types/next-drupal-pages.ts:9

Type declaration

serializer?

optional serializer: Serializer

Override the default data serializer. You can use this to add your own JSON:API data deserializer.

  • Default value: jsona
  • Required: No

Documentation

useDefaultResourceTypeEntry?

optional useDefaultResourceTypeEntry: boolean

By default, the client will make a request to JSON:API to retrieve the endpoint url. You can turn this off and use the default endpoint based on the resource name.

  • Default value: false
  • Required: No

Documentation