Docs

Learn

v.Latest
Documentation
Adding a Document
Table of Contents

Adding a document with addPendingDocument

The addPendingDocument mutation will take in the collection name as a parameter, as well as the new relative path.

Note: addPendingDocument does not currently support fields of any kind, just creating the record.
mutation {
addPendingDocument(collection: "post", relativePath: "pedro.json") {
__typename
}
}
{
"data": {
"addPendingDocument": {
"__typename": "Post"
}
}
}
Ready to try out some of these queries using your specific schema? Try running the Tina CLI and testing them out using the Altair client
Last Edited: March 26, 2025

Join the Herd!

Become part of our coding comunity and stay updated with the latest tips and news.