Create Space
createSpace
mutation is used to create a new space.
It takes CreateSpaceInput
as an input.
- GraphQL
- JS Client
This will create a new space with the name "New Space" inside the default collection.
#
Create a space inside a collectionYou can pass the id
of the collection to create the space inside it.
Let's first create a collection.
- GraphQL
- JS Client
The response will contain the id
of the collection.
Then you can use the collectionId
to create the space inside the collection.
- GraphQL
- JS Client
This will create a space with the name "Say Hello" inside the collection "Get Started".
#
Create a space with an emoji as imageYou can also create a space with an emoji as image.
You need to create an emoji first and then use the id
of the emoji as imageId
.
- GraphQL
- JS Client
- GraphQL
- JS Client
This will create a space with a Thumbs Up emoji (👍) as image.
#
Create a space with an imageTo create a space with an image first you need to upload an image.
And then you can use the id
of the image as imageId
.
- GraphQL
- JS Client