Back

How can I clone the attributes of another collection when creating one

  • 0
  • Databases
Loona
6 Jan, 2024, 21:00

How can I clone the attributes of another collection when a collection

TL;DR
When creating a collection, you can clone the attributes of another collection by using a script with the server SDK or the Appwrite CLI. There is no specific function for this, but you can reference the various endpoints provided by Appwrite's documentation, such as the createStringAttribute endpoint.
Drake
6 Jan, 2024, 21:19

You can either write a script using a server SDK or the Appwrite CLI

Loona
6 Jan, 2024, 21:26

so there is not really a function?

Loona
6 Jan, 2024, 21:35

and how can I set attributes on creation with the server sdk?

Drake
6 Jan, 2024, 21:42
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more