For the complete documentation index, see llms.txt. This page is also available as Markdown.

62. म्यूटेशन: फ़ार्म साझा करें

बस्ट फ़ार्मों को "Organization" के अंदर के उपयोगकर्ताओं या बाहरी उपयोगकर्ताओं के साथ साझा करना। म्यूटेशन लागू करने के दो मामले हैं। पहला मामला ईमेल सूची के माध्यम से बैच "Farm" साझा करना है।

mutation ShareFarmsSample {
  shareFarms(
    input: {
      farmUuids: ["farm_uuid1", "farm_uuid2"]
      emails: ["user1@gmail.com", "user2@gmail.com"]
    }
  ) {
    uuid
    userUuid
    name
    farmOwnership
    निर्माण_तिथि
    updatedDate
    email
  }
}

और दूसरा मामला यह है कि "Organization" में "Users" की सूची के लिए फ़्लैग ‘allFarms=true’ सेट किया जाए, जिसका मतलब है कि "Organization" के अंदर सभी नई फ़ार्में इन "Users" के लिए उपलब्ध होंगी।

mutation ShareFarmsSample {
  shareFarms(
    input: { 
      emails: ["user@gmail.com"], 
      allFarms: true 
    }
  ) {
    uuid
    userUuid
    name
    farmOwnership
    निर्माण_तिथि
    updatedDate
    email
  }
}

अंतिम अपडेट

क्या यह उपयोगी था?