# Time for new possibilities of Wix-Data

**URL:** <https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [April 23, 2023, 7:49pm UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127 "2023-04-23T19:49:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [April 23, 2023, 7:49pm UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127/1 "2023-04-23T19:49:43Z")

</div>

When it will be possible to generate/create a new collection/database by code, defining also all it’s DB-Field-Types by code aswell?

@_wix-2  
If you need some code for it…

```javascript
import wixData from 'wix-data';

const collectionSchema = {
  "title": "My Collection",
  "description": "This is my collection schema",
  "fields": [
    { "name": "name", "type": "text" },
    { "name": "age", "type": "number" },
    { "name": "email", "type": "email" },
    { "name": "dateOfBirth", "type": "date" },
    { "name": "isSubscribed", "type": "boolean" },
    { "name": "avatar", "type": "image" },
    { "name": "description", "type": "text" },
    // Add more fields here
  ]
};

  wixData.createCollection("myCollection", collectionSchema)
  .then((collection) => {
    // Collection has been created with the defined schema
    console.log(`Collection ${collection.title} created successfully`);
  })
  .catch((error) => {
    console.error(`Failed to create collection: ${error}`);
  });

```

It is time to implement this function/method to the Wix-Data-API to expand the features and functions of Wix-Data.

I hope this won’t take any longer, since the CODE is already here 😁

Make it possible for us, to create databses the dynamic way (by code), instead to generate them all the time manually inside the Content-Manager.

## A -------\> FAST-SOLUTION \<------- IS VERY APPRECIATED !

## 

## Thanks for hearing my voice.

---

<div class="post-metadata">

**Author:** ![Certified\_Code](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/certified_code/32/80179_2.png) [@Certified\_Code](https://forum.wixstudio.com/u/Certified_Code)\
**Post date:** [April 24, 2023, 12:49am UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127/2 "2023-04-24T00:49:09Z")

</div>

Check this out: [https://dev.wix.com/api/rest/wix-data/wix-data/data-collections/create-data-collection](https://dev.wix.com/api/rest/wix-data/wix-data/data-collections/create-data-collection)

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [April 24, 2023, 10:38am UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127/3 "2023-04-24T10:38:33Z")

</div>

Thanks old friend! I will take a look into this, even if i do not know much about CURL-Programming.

I forgot totally about Wix-Developers. I should take a deeper look onto it.  
Time to open a new door 😁🙄

Thanks for the link.

---

<div class="post-metadata">

**Author:** ![quentin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/quentin/32/13167_2.png) [@quentin](https://forum.wixstudio.com/u/quentin)\
**Post date:** [April 24, 2023, 11:51am UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127/4 "2023-04-24T11:51:03Z")

</div>

Tips: ask an AI to translate CURL into javascript fetch call 😉

---

<div class="post-metadata">

**Author:** ![quentin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/quentin/32/13167_2.png) [@quentin](https://forum.wixstudio.com/u/quentin)\
**Post date:** [April 24, 2023, 12:01pm UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127/5 "2023-04-24T12:01:31Z")

</div>

I agree it would make sense to fully include WixData feature [https://dev.wix.com/api/rest/wix-data/wix-data](https://dev.wix.com/api/rest/wix-data/wix-data) into Wix.

I would love to be able retrieve database schema, or to generate/edit collection via code.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [April 24, 2023, 8:53pm UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127/6 "2023-04-24T20:53:38Z")

</div>

Yes, this i already know, but this still not explain me —\> when and why i do need CURL 😁  
But i am honest, till now i was lazy to read stuff about CURL.  
BIG LECK OF KNOWLEDGE in this area.

It’s like start again from ZERO.

But thanks for the tip !!! I will also try this out.  
I will need some time for it to investigate all functions, features and how all that works → (like with VELO and JS and HTML and CSS and VBA).

The list gets bigger and bigger —\> Seems like a never-ending-story. 😆

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [April 24, 2023, 8:55pm UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127/7 "2023-04-24T20:55:21Z")

</div>

I am waiting for it now surely for 2-3 years 😁.  
And if CC would give me that tip earlier (hopely it will work), i would have studied CURL already.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [May 20, 2023, 9:46am UTC](https://forum.wixstudio.com/t/time-for-new-possibilities-of-wix-data/1127/8 "2023-05-20T09:46:32Z")

</div>

Seems like we will get new API soon…

I :heart: it !!!

![](https://us1.discourse-cdn.com/wix/original/3X/b/7/b799f7298893db879284adccfc4e78c5461a9706.png)  
Great news for me / us!
