schema { query: Input mutation: MutationRoot } """ Only allow the field to be queried when targeting one of the specified targets. """ directive @restrictTarget(only: [String!]!) on FIELD_DEFINITION """ Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: `"gid://shopify/Product/10079785100"` """ scalar ID """ A void type that can be used to return a null value from a mutation. """ scalar Void """ The input object for the function. """ type Input { id: ID! num: Int name: String country: CountryCode, targetAResult: Int @restrictTarget(only: ["test.target-b"]) } """ The root mutation for the API. """ type MutationRoot { """ The function for API target A. """ targetA( """ The result of calling the function for API target A. """ result: FunctionTargetAResult! ): Void! """ The function for API target B. """ targetB( """ The result of calling the function for API target B. """ result: FunctionTargetBResult! ): Void! } """ The result of API target A. """ input FunctionTargetAResult { status: Int } """ The result of API target B. """ input FunctionTargetBResult { name: String country: CountryCode } enum CountryCode { AC CA }