I don’t get my head arround, restricting Queries to specific fields. This is what I tried, but since the parameters are no inputs in a Query, this doesn’t work.
Is there any way to archive this?
type Vertrag {
id: ID!
name: String!
profitabelBis: Float!
}
type Verhandlungsrahmen {
id: ID!
rabattVon: Float!
rabattBis: Float!
}
type Query {
createVertrag(
name: String!
preis: Float!
verhandlungsrahmen: VerhandlungsrahmenInput!
): Task @bb_resolver(
_type: INSERT
_object: Vertrag
_fields: {
name: "$name"
preis: "$preis"
verhandlungsrahmen: { id: "$verhandlungsrahmen.$id" }
}
)
}