Hi! Is there's an option how to post in Databrowse...
# prisma-whats-new
k
Hi! Is there's an option how to post in Databrowser not from the graphcool gui? For example, I want to make my own admin gui. How to make POST in Databrowser, can somebody point me to right direction?
p
@kode_k Do you mean manipulating the schema per HTTP? If so: There is an API, but it is not publicly documented. Devs do want to make changes to this API without considering backwards compatibility. You can however analyze the network communication in your browser to find out how the API is working.
k
@pso not the Schema, Data. For example, I have Article schema. I want to add to Data not from site gui, but my admin form.
p
Oh, okay. This would then be the API you find under "Playground"?
k
I guess I can use mutations for that? Just started GraphQL, so...
p
Ah, okay. Yes, you are looking for mutations. There should be something like "createArticle()".
k
Yes, I will dig into that. Thanks
The point is to create somekind of CMS for content managers
p
mutation { createArticle( ...your parameters... ) { id } }
good luck
👍 1