View Source AshGraphql.Resource (ash_graphql v1.5.0)

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

Summary

Functions

codegen(argv)

decode_id(resource, id, relay_ids?)

decode_primary_key(resource, value)

decode_relay_id(id)

define_type?(type, constraints)

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

embedded?(resource_or_type)

encode_id(record, relay_ids?)

encode_primary_key(record)

encode_relay_id(record)

enum_definitions(resource, schema, env)

generate_object?(resource)

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

See AshGraphql.Resource.Info.generate_object?/1.

graphql(body)

(macro)

install(igniter, module, arg, path, argv)

managed_relationship_definitions(used, schema)

managed_relationships(resource)

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

See AshGraphql.Resource.Info.managed_relationships/1.

map_definitions(resource, all_domains, schema, env)

mutations()

mutations(resource, domain \\ [])

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

See AshGraphql.Resource.Info.mutations/2.

no_graphql_types(resource, schema)

node_type?(type)

primary_key_delimiter(resource)

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

See AshGraphql.Resource.Info.primary_key_delimiter/1.

primary_key_get_query(resource, all_domains)

queries()

queries(resource, domain \\ [])

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

See AshGraphql.Resource.Info.queries/2.

query_type_definitions(resource, domain, all_domains, schema, relay_ids?)

ref(env)

subscriptions()

subscriptions(resource, domain \\ [])

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

See AshGraphql.Resource.Info.subscriptions/2.

type(resource)

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

See AshGraphql.Resource.Info.type/1.

type_definition(resource, domain, all_domains, schema, relay_ids?)