Library Documentation
NPM
GitHub
Preparing search index...
The search index is not available
Amplify JS API Documentation
Amplify JS API Documentation
aws-amplify
datastore
RelationType
Interface RelationType
interface
RelationType
{
associatedWith
?:
string
|
string
[]
;
fieldName
:
string
;
modelName
:
string
;
relationType
:
"HAS_ONE"
|
"HAS_MANY"
|
"BELONGS_TO"
;
targetName
?:
string
;
targetNames
?:
string
[]
;
}
Index
Properties
associated
With?
field
Name
model
Name
relation
Type
target
Name?
target
Names?
Properties
Optional
associated
With
associated
With
?:
string
|
string
[]
field
Name
field
Name
:
string
model
Name
model
Name
:
string
relation
Type
relation
Type
:
"HAS_ONE"
|
"HAS_MANY"
|
"BELONGS_TO"
Optional
target
Name
target
Name
?:
string
Optional
target
Names
target
Names
?:
string
[]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
associated
With
field
Name
model
Name
relation
Type
target
Name
target
Names
Amplify JS API Documentation
aws-amplify
@aws-amplify
geo
interactions
predictions
pubsub
adapter-nextjs
datastore-storage-adapter