From 234f2d6d6147df65d16a2d67ea90a40ec708cb92 Mon Sep 17 00:00:00 2001 From: Dmitry Maganov Date: Thu, 28 Mar 2024 16:54:28 +0200 Subject: [PATCH] fix: add `show_fields` to `spark_locals_without_parens` in formatter (#122) --- .formatter.exs | 1 + documentation/dsls/DSL:-AshGraphql.Resource.md | 1 + 2 files changed, 2 insertions(+) diff --git a/.formatter.exs b/.formatter.exs index 5a93fd8d..39daadf7 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -45,6 +45,7 @@ spark_locals_without_parens = [ relay?: 1, relay_id_translations: 1, root_level_errors?: 1, + show_fields: 1, show_metadata: 1, show_raised_errors?: 1, tracer: 1, diff --git a/documentation/dsls/DSL:-AshGraphql.Resource.md b/documentation/dsls/DSL:-AshGraphql.Resource.md index 45815f19..9a4b267d 100644 --- a/documentation/dsls/DSL:-AshGraphql.Resource.md +++ b/documentation/dsls/DSL:-AshGraphql.Resource.md @@ -58,6 +58,7 @@ end | [`relationships`](#graphql-relationships){: #graphql-relationships } | `list(atom)` | | A list of relationships to include on the created type. Defaults to all public relationships where the destination defines a graphql type. | | [`field_names`](#graphql-field_names){: #graphql-field_names } | `keyword` | | A keyword list of name overrides for attributes. | | [`hide_fields`](#graphql-hide_fields){: #graphql-hide_fields } | `list(atom)` | | A list of attributes to hide from the api | +| [`show_fields`](#graphql-show_fields){: #graphql-show_fields } | `list(atom)` | | A list of attributes to show in the api. If not specified includes all (excluding `hide_fiels`). | | [`argument_names`](#graphql-argument_names){: #graphql-argument_names } | `keyword` | | A nested keyword list of action names, to argument name remappings. i.e `create: [arg_name: :new_name]` | | [`keyset_field`](#graphql-keyset_field){: #graphql-keyset_field } | `atom` | | If set, the keyset will be displayed on all read actions in this field. It will be `nil` unless at least one of the read actions on a resource uses keyset pagination or it is the result of a mutation | | [`attribute_types`](#graphql-attribute_types){: #graphql-attribute_types } | `keyword` | | A keyword list of type overrides for attributes. The type overrides should refer to types available in the graphql (absinthe) schema. `list_of/1` and `non_null/1` helpers can be used. |