Skip to content

How to add item? #14

@oleva

Description

@oleva

Hi,

I really like the features and it's very easy to get items from Directus.

But I'm having hard time utilizing the Directus SDK's createOne() and/or createMany().

I've tried to include them in methods to submit function, the data is correct but I just get undefined error with:
await this.$directus.name-of-collection.createOne();

Should this work, or should I go with Axios? Update in documentation about this would be highly appreciated. The idea here is to get the basic crud working as fast as possible.

@kaesetoast
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions