2

I d like to insert my Product and create its name in the Localized String table in the same operation.

mutation CreateProduct {
  product_insert(
    data: { 
        name: localizedString_insert( 
            data: { 
                enUS: "MyProduct"
                frFR: "MonProduit"
        }) 
    })
}

schema:

type Product @table {
  name: LocalizedString
}

type LocalizedString @table {
  enUS: String
  frFR: String
}

I tried so many ways but none seems to work, do DataConnect even allow one-to-one nested insert or should i do like a 3 operation inserts for each row?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.