Skip to content

martimatix/Rust-Juniper-Rocket-GraphQL-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Juniper Rocket GraphQL Example

Are you trying to figure out how to use Juniper with Rocket?

Clone this project and follow the instructions below and start playing today! Unlike the Rocket example in the Juniper repo, it can be built without relying on types defined in Juniper tests.

Running the project

Since Rocket uses the latest and greatest features of Rust, you need to use a nightly version of rust. As per the Rocket documentation, you can do this using

$ rustup default nightly

or per project basis

$ rustup override set nightly

Lastly, you can run the server using

$ cargo run

If all goes well, you will be able to visit http://localhost:8000/ with a graphiql interface.

Attributions

I found this example by Roman Frołow to helpful.

About

A demo project that answers "How do I use Juniper with Rocket?"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages