Skip to content

Commit f5ebccd

Browse files
authored
Merge pull request #229 from moufmouf/fix_migrate_link
Fixing migrating link in post release doc
2 parents 61e8c72 + c0758cf commit f5ebccd

File tree

3 files changed

+67
-2
lines changed

3 files changed

+67
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,5 @@ jobs:
9393
- git config --global user.email "${GH_EMAIL}"
9494
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
9595
- cd website && yarn install && GIT_USER="${GH_NAME}" yarn run publish-gh-pages
96-
matrix:
9796
allow_failures:
9897
- stage: test_dependencies

website/pages/en/versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function Versions(props) {
7272
<a href={"docs/"+version+"/features.html"}>Documentation</a>
7373
</td>
7474
<td>
75-
<a href="">Release Notes</a>
75+
<a href={"docs/"+version+"/migrating.html"}>Release Notes</a>
7676
</td>
7777
</tr>
7878
),
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
id: version-3.0-migrating
3+
title: Release notes
4+
sidebar_label: Release notes
5+
original_id: migrating
6+
---
7+
8+
## First stable release of GraphQLite
9+
10+
GraphQLite is PHP library that allows you to write your GraphQL queries in simple-to-write controllers.
11+
12+
- Create a complete GraphQL API by simply annotating your PHP classes
13+
- Framework agnostic, but Symfony and Laravel bindings available!
14+
- Comes with batteries included: queries, mutations, mapping of arrays / iterators, file uploads, extendable types and more!
15+
16+
After several months of work, we are very happy to announce the availability of GraphQLite v3.0.
17+
18+
If you are wondering where are v1 and v2... yeah... GraphQLite is a fork of "thecodingmachine/graphql-controllers" that already had a v1 and a v2. But so much has changed that it deserved a new name!
19+
20+
[Check out the documentation](https://graphqlite.thecodingmachine.io)
21+
22+
## Basic example
23+
24+
First, declare a query in your controller:
25+
26+
```php
27+
class ProductController
28+
{
29+
/**
30+
* @Query()
31+
*/
32+
public function product(string $id): Product
33+
{
34+
// Some code that looks for a product and returns it.
35+
}
36+
}
37+
```
38+
39+
Then, annotate the `Product` class to declare what fields are exposed to the GraphQL API:
40+
41+
```php
42+
/**
43+
* @Type()
44+
*/
45+
class Product
46+
{
47+
/**
48+
* @Field()
49+
*/
50+
public function getName(): string
51+
{
52+
return $this->name;
53+
}
54+
// ...
55+
}
56+
```
57+
58+
That's it, you're good to go :tada:! Query and enjoy!
59+
60+
```graphql
61+
{
62+
product(id: 42) {
63+
name
64+
}
65+
}
66+
```

0 commit comments

Comments
 (0)