I am using graphql api to create an entry with reletional field. But instead of ID of the related field, I want to use my custom UUID(custom field) to connect them.
for example here, restaurants: [“1”, “2”] the relations are defined by ID, but I want to use UUID or slug or something else. is it possible?
mutation {
createUser(
data: {
username: "John"
email: "john@doe.com"
restaurants: ["1", "2"]
}
) {
data {
id
attributes {
username
email
restaurants {
data {
id
attributes {
name
description
price
}
}
}
}
}
}
}