CreateDevToArticle

Creates an (unpublished) article on DEV.to

See the Publishing and Unpublishing example for how to publish the article after creating it.

mutation CreateDevToArticle($apiKey: String!) { devTo(auths: { devToAuth: { apiKey: $apiKey } }) { createArticle( input: { article: { title: "Posting articles to dev.to from any programming language via GraphQL: An Exhaustive Guide" bodyMarkdown: "Just use OneGraph, of course!" tags: ["graphql", "onegraph"] } } ) { article { bodyHtml bodyMarkdown id slug tags url } } } }
Types used in this example
Mutation

No description

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

DevToMutation

The root for DevTo mutations

OneGraphServiceAuths

No description

OneGraphDevToAuthArg

No description

DevToCreateArticlePayload

Payload for the createArticle mutation.

DevToArticle

No description

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

____________________________________________________________________________________________________