WikiJs GraphQl select content type when creating a page

WikiJs GraphQl select content type when creating a page


0

Hello I am currently having the problem that if I try to create a page with the GraphQl Api for WikiJs that the content type is always text when I would like it to be markdown. Does someone know what I a doing wrong or what I need to change in my query. Below you find an exmaple of the query used.

mutation{
      pages{
          create(content: "Test for best result", description: "Testsite to check creation", editor: "Markdown", isPublished: true, isPrivate: false, locale : "en", path: "/home/product_factory/devops/monitoring/Changelogs/", title: "New Changelog", tags: [])

          {
            responseResult
            {
                succeeded
                errorCode
            }
          }
      }
}

I tried searching online for a solution but found nothing. I also tried creating a page in the web ui and there everthing works.

New contributor

acskr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 7 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *