@aws-amplify/graphql-relational-transformer
TypeScript icon, indicating that this package has built-in type declarations

3.1.1 • Public • Published

GraphQL Relational Modeling Transformers

Reference Documentation

@hasOne

The @hasOne directive allows you to define "has one" relationships between data.

Definition

directive @hasOne(fields: [String!]) on FIELD_DEFINITION

@hasMany

The @hasMany directive allows you to define "has many" relationships between data.

Definition

directive @hasMany(indexName: String, fields: [String!], limit: Int = 100) on FIELD_DEFINITION

@belongsTo

The @belongsTo directive allows you to define "belongs to" relationships between data.

Definition

directive @belongsTo(fields: [String!]) on FIELD_DEFINITION

@manyToMany

The @manyToMany directive allows you to define "many to many" relationships between data.

Definition

directive @manyToMany(relationName: String!, limit: Int = 100) on FIELD_DEFINITION

Package Sidebar

Install

npm i @aws-amplify/graphql-relational-transformer

Weekly Downloads

45,463

Version

3.1.1

License

Apache-2.0

Unpacked Size

506 kB

Total Files

113

Last publish

Collaborators

  • aws-amplify-data-runtime
  • amplify-data-dev-npm
  • amplify-studio-uibuilder
  • amplify-codegen
  • amzn-oss
  • undefobj
  • aws-amplify-ops
  • thaddmt
  • mattsb42-aws