Generate a JSON file that contains a schema that defines the given model in GraphQL. All types and properties are defined independently and linked together by referencing the type names.

Requires that dotnet is installed.

Command Line Arguments

Required inputs for the publish-GraphQL command (must be specified in order).

  • [CogsLocation]

    The location of the folder containing the model.

  • [TargetLocation]

    The location of the folder where the output will be created.

Command Line Flags

Optional inputs for the publish-GraphQL command.

  • -?|-h|--help

    Displays all possible command arguments and flags for the publish-GraphQL command.

  • -o|--overwrite

    If the [TargetLocation] is not empty, erase all files in the folder before generation.

Command Line Usage


$ publish-GraphQL (-h) (-o) [CogsLocation] [TargetLocation]


A few examples of how the command line arguments and flags can be used together.

$ publish-GraphQL -h
$ publish-GraphQL MyCogsModelDirectory MyOutputDirectory
$ publish-GraphQL -o MyCogsModelDirectory MyOutputDirectory