Anyone know if there is a way to specify the ID of...
# random
m
Anyone know if there is a way to specify the ID of file for relationship instead of the object:
Copy code
mutation CraeteFarmAndAddress(
  $name: String!, 
  $farmers: String!, 
  $partnerSince: Int!, 
  $founded: Int!, 
  $laborSource: String!, 
  $safetyCertifications: String!, 
  $otherCertifications: String!, 
  $size: String!, 
  $sustainabilityPractices: String!, 
  $url: String!, 
  $addressData: FarmaddressAddress, 
  $farmLogo: FarmfarmLogoFile!,  // I would rather this by ID!
  $files: [FarmfilesFile!] // I would rather this be [ID!]
) {
  createFarm(name: $name, farmers: $farmers, partnerSince: $partnerSince, founded: $founded, laborSource: $laborSource, safetyCertifications: $safetyCertifications, otherCertifications: $otherCertifications, size: $size, sustainabilityPractices: $sustainabilityPractices, url: $url, address: $addressData, farmLogo: $farmLogo, files: $files) {
    id
    address {
      id
      __typename
    }
    __typename
  }
}