Commit graph

32 commits

Author SHA1 Message Date
Nathan Wilson
389fd5ca19
Add bson crate's ObjectId to juniper foreign scalar type integrations (#517) 2020-02-12 23:49:50 -07:00
James H
df2740393a
Add dataloader explaination to book (#518) 2020-02-12 23:45:15 -07:00
tyranron
c51c675306
Use caret requirement for specifying 'futures' crate version 2020-02-04 09:57:47 +01:00
tyranron
dd9c201352 Upgrade uuid to 0.8 version 2020-01-29 01:59:42 -05:00
Andy Swan
ab498f2f24
fixing a double spell 2020-01-28 11:07:25 +00:00
Christian Legnitto
31ca3e6156 Add async to doc tests 2020-01-21 08:38:13 -08:00
Christian Legnitto
73dc5cd5b8 Release juniper 0.14.2 2020-01-18 17:14:35 -08:00
Samuel Hurel
5b1c5c697a Add note on complex fields impl block in doc (#483) 2020-01-18 17:14:35 -08:00
Klaus Purer
4a91d9d205 docs(quickstart): Fix juniper version so the examples work 2020-01-18 17:14:35 -08:00
Christoph Herzog
ce3cf45ca9 Rename object proc macro to graphql_object 2019-11-16 02:57:48 +01:00
Christoph Herzog
46590ae884 book: Fix union and scalar code examples 2019-11-16 02:33:20 +01:00
Christoph Herzog
97e1005178 Clean up ScalarValue transparent derive argument handling and documentation. 2019-06-25 18:55:45 +02:00
Christoph Herzog
3396074274 (codegen) Implement newtype derive for scalars.
This commit implements a newtype style custom derive
for scalars via `#[derive(GraphQLScalarValue)]`, which now
supports both deriving a base enum scalar type and newtypes.

For newtypes, the `#[graphql(transparent)]` attribute is
required.

This commit:
* implements the derive
* adds integration tests
* updates the book
2019-06-25 18:55:45 +02:00
Clayton Ray
c2f119690b fix(docs): correct warp example link in book (#367)
This fix adds the correct link for the Warp Server example.
2019-05-25 18:56:35 -07:00
Christoph Herzog
74522b015e (book) Update the graphql_scalar! example to be generic
This is now basically a requirement due to GraphQLObject derive
being generic.
2019-05-17 19:26:01 +02:00
Christoph Herzog
cff6036206 (book) Add ::object macro field and argument customization info 2019-05-16 14:08:19 +02:00
Christoph Herzog
29025e6cae
Rename impl_object to object. 2019-05-13 21:15:14 +02:00
Christoph Herzog
693405afa5
(book) impl_object refactor 2019-05-12 10:36:30 +02:00
Rogerio Moura
dbfcc762da Specify path to graphql_object module (#352) 2019-05-05 20:20:21 -07:00
Christian Legnitto
0f78417f44
Delete yarn.lock (#351)
Not needed now that we have switched to mdbook
2019-05-03 00:39:58 -07:00
Christian Legnitto
37a9d02850
Fix failure when no book content has changed
If there is no new book content, `git commit` will return `1` and the entire job will error. Took answer from https://stackoverflow.com/questions/8123674/how-to-git-commit-nothing-without-an-error
2019-05-03 00:39:33 -07:00
Christoph Herzog
5a4230e0d0
Remove macro_use + extern crate statements (2018 edition) 2019-05-02 18:44:56 +02:00
Christian Legnitto
b96879e2db Add a git ssh origin when pushing docs
Azure apparently downloads the source via http,
so when we go to push the ssh keychain is not used.
adding origin shoudl fix it, as was done in
https://cloudblogs.microsoft.com/opensource/2019/04/05/publishing-github-pages-from-azure-pipelines/
2019-04-16 21:52:58 -07:00
Christian Legnitto
94cc621598 Attempt to fix docs
Cribbed from https://cloudblogs.microsoft.com/opensource/2019/04/05/publishing-github-pages-from-azure-pipelines/
and https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/install-ssh-key?view=azure-devops
2019-04-16 21:27:24 -07:00
Christian Legnitto
17e564c6f0
Use bash for docs scripts
This is erroring out on CI as `pipefail` is a bash-ism AFAICT.
2019-04-15 21:41:00 -07:00
Christoph Herzog
3165467665 (book) Remove inexistant tutorial link 2019-04-10 03:00:35 +02:00
Christoph Herzog
ff66b89baa tmp 2019-04-10 02:30:38 +02:00
Muriel Silveira
a75396846d Fix broken docs links
Many links on the documentation were broken because they
were not using the correct relative paths.
2019-04-10 02:19:26 +02:00
Christian Legnitto
ba8cfbd105 Add support for the canonical introspection query
Fixes https://github.com/graphql-rust/juniper/issues/307.
2019-04-04 09:11:20 +02:00
Christoph Herzog
ca7f9aa253 (ci) CI integration for book
* Test book code examples in separate job
* In master branch, build + push book to gh-pages branch
2019-03-08 12:00:43 +01:00
Christoph Herzog
9623e4d326 (book) Update and fix book compilation and tests
* Use mdbook for building the book
* Update book config
* Update book hierarchy to work properly with mdbook
    This necessitated adding place-holder index pages
    since mdbook does not suppoert stand-alon menu items
* Update tests to use 2018 edition
* Fix various compilation errors in the tests
2019-03-08 11:47:13 +01:00
Christoph Herzog
49297afab0 Import book from old stand-alone repo.
Imported from https://github.com/graphql-rust/graphql-rust.github.io.
2019-03-08 11:47:13 +01:00