From the course: GraphQL for Enterprise Developers

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Generating a template

Generating a template

- [Instructor] We've already seen several useful Rover commands, but I wanted to show you something that is really cool if you are starting from scratch and wanted a little guidance. Rover has these template commands that you can use to create your own subgraph. So, you have a whole host of available templates. This is a very JavaScript-specific class, but they have templates for C# and Go and Java, Python and another Python, and Rust and TypeScript, all sorts of different things. So, if you did want to start with one of these, you could. So, here in 03_04b, I'm going to type rover template use, and I'll call this my-subgraph. And if I hit Enter here, what it'll do is it'll take me through the wizard for setting this up. So, I'm going to go with JavaScript, and then it's going to ask me which one I want to use, which will be Apollo server. It's going to download that, and now I have this subgraph here. So, all of the efforts that I went to in order to set this up, I can actually do…

Contents