ДР
Size: a a a
ДР
ДР
V
V
GT
VM
VM
TB
TB
TB
GT
AS
ДР
dude help me out. I am trying to create an aws appsync gql schema where I have bundles, products, and orders. The orders has a group of products that can each have different quantitites. this doesn't work. Because item isn't a model and won't @connect to product.
type Bundle @model @auth(rules: [{ allow: owner, queries: null }] {
id: ID!
name: String!
items: [Item!]!
price: Float!
}
type Item {
id: ID!
quantity: Int!
product: Product
}
type Product @model {
id: ID!
title: String!
description: String!
price: Float!
}
type Order @model {
id: ID!
items: [Item!]!
price: Float!
createdAt: String!
}
-----------------------------------------------
I also tried doing this with my orders but no luck. You love amplify. Help me out wiht my schema on this?
type Order @model @auth(rules: [{ allow: owner, queries: null }]) {
id: ID!
products: [product: Product! @connection, quantity: Int!]!
price: Float!
owner: String
customerName: String!
customerEmail: String!
customerAddress: String!
}
И
dude help me out. I am trying to create an aws appsync gql schema where I have bundles, products, and orders. The orders has a group of products that can each have different quantitites. this doesn't work. Because item isn't a model and won't @connect to product.
type Bundle @model @auth(rules: [{ allow: owner, queries: null }] {
id: ID!
name: String!
items: [Item!]!
price: Float!
}
type Item {
id: ID!
quantity: Int!
product: Product
}
type Product @model {
id: ID!
title: String!
description: String!
price: Float!
}
type Order @model {
id: ID!
items: [Item!]!
price: Float!
createdAt: String!
}
-----------------------------------------------
I also tried doing this with my orders but no luck. You love amplify. Help me out wiht my schema on this?
type Order @model @auth(rules: [{ allow: owner, queries: null }]) {
id: ID!
products: [product: Product! @connection, quantity: Int!]!
price: Float!
owner: String
customerName: String!
customerEmail: String!
customerAddress: String!
}
ДР
ДР
V
AS
dude help me out. I am trying to create an aws appsync gql schema where I have bundles, products, and orders. The orders has a group of products that can each have different quantitites. this doesn't work. Because item isn't a model and won't @connect to product.
type Bundle @model @auth(rules: [{ allow: owner, queries: null }] {
id: ID!
name: String!
items: [Item!]!
price: Float!
}
type Item {
id: ID!
quantity: Int!
product: Product
}
type Product @model {
id: ID!
title: String!
description: String!
price: Float!
}
type Order @model {
id: ID!
items: [Item!]!
price: Float!
createdAt: String!
}
-----------------------------------------------
I also tried doing this with my orders but no luck. You love amplify. Help me out wiht my schema on this?
type Order @model @auth(rules: [{ allow: owner, queries: null }]) {
id: ID!
products: [product: Product! @connection, quantity: Int!]!
price: Float!
owner: String
customerName: String!
customerEmail: String!
customerAddress: String!
}
AS