# `AshGraphql.Resource`
[🔗](https://github.com/ash-project/ash_graphql/blob/v1.9.4/lib/resource/resource.ex#L5)

This Ash resource extension adds configuration for exposing a resource in a graphql.

# `codegen`

# `decode_id`

# `decode_primary_key`

# `decode_relay_id`

# `define_type?`

```elixir
@spec define_type?(Ash.Type.t(), Ash.Type.constraints()) :: boolean()
```

# `embedded?`

# `encode_id`

# `encode_primary_key`

# `encode_relay_id`

# `enum_definitions`

# `generate_object?`

> This function is deprecated. See `AshGraphql.Resource.Info.generate_object?/1`.

# `graphql`
*macro* 

# `install`

# `managed_relationship_definitions`

# `managed_relationships`

> This function is deprecated. See `AshGraphql.Resource.Info.managed_relationships/1`.

# `map_definitions`

# `mutations`

# `mutations`

> This function is deprecated. See `AshGraphql.Resource.Info.mutations/1`.

# `no_graphql_types`

# `node_type?`

# `primary_key_delimiter`

> This function is deprecated. See `AshGraphql.Resource.Info.primary_key_delimiter/1`.

# `primary_key_get_query`

# `queries`

# `queries`

> This function is deprecated. See `AshGraphql.Resource.Info.queries/1`.

# `query_type_definitions`

# `ref`

# `subscriptions`

# `subscriptions`

> This function is deprecated. See `AshGraphql.Resource.Info.mutations/1`.

# `type`

> This function is deprecated. See `AshGraphql.Resource.Info.type/1`.

# `type_definition`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
