Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>cncspecNew to Visual Studio Code? Get it now.

cncspec

Click & Code

|
224 installs
| (0) | Free
Language support for Click & Code specification files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cncspec

cncspec is a language for specifying the domain of a Click & Code App.

This extension provides syntax highlighting and validation of specs.

Example

service BlogService {
    schema Author {
        name:String!
        
        // A relation from author to their posts through the autorId field
        posts(authorId): [Post]

    }

    schema Post {
        text:String!
        authorId:RefID!

        // A relation from post to its author through the authorId field
        author(authorId): Author
    }
}
        
// Give everyone permission to read Authors and Posts
allow ALL {
    Author {
        read
    }

    Post {
        read
    }
}

// Grant admins full rights to everything
allow admin

allow editor {
    Post {
        update
        delete
    }
}

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2022 Microsoft