Class: ForestAdminDatasourceGraphqlHasura::Introspection::Relationship

Inherits:
Struct
  • Object
show all
Defined in:
lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb

Overview

kind is :object or :array. mapping is { local_column => remote_column }, where a nil side stands for the primary key of that table, and the whole hash is nil when the Hasura metadata was unreachable. manual tells a manual_configuration relationship from a foreign-key-constraint one.

Instance Attribute Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



18
19
20
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 18

def kind
  @kind
end

#manualObject

Returns the value of attribute manual

Returns:

  • (Object)

    the current value of manual



18
19
20
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 18

def manual
  @manual
end

#mappingObject

Returns the value of attribute mapping

Returns:

  • (Object)

    the current value of mapping



18
19
20
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 18

def mapping
  @mapping
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



18
19
20
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 18

def name
  @name
end

#remote_tableObject

Returns the value of attribute remote_table

Returns:

  • (Object)

    the current value of remote_table



18
19
20
# File 'lib/forest_admin_datasource_graphql_hasura/introspection/structures.rb', line 18

def remote_table
  @remote_table
end