upgrade sdk
This commit is contained in:
parent
1a3664605f
commit
95847137db
@ -1,13 +1,10 @@
|
|||||||
{
|
{
|
||||||
"projects": {
|
"project": {
|
||||||
"app": {
|
"schemaPath": "generated/wundergraph.schema.graphql",
|
||||||
"name": "app",
|
|
||||||
"schemaPath": "generated/wundergraph.app.schema.graphql",
|
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"endpoints": {
|
"endpoint": {
|
||||||
"app": {
|
|
||||||
"introspect": false,
|
"introspect": false,
|
||||||
"url": "http://localhost:9991/app/main/graphql",
|
"url": "http://localhost:9991/graphql",
|
||||||
"headers": {
|
"headers": {
|
||||||
"user-agent": "WunderGraph Client"
|
"user-agent": "WunderGraph Client"
|
||||||
}
|
}
|
||||||
@ -15,5 +12,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
@ -1,5 +1,4 @@
|
|||||||
import {
|
import {
|
||||||
Application,
|
|
||||||
configureWunderGraphApplication,
|
configureWunderGraphApplication,
|
||||||
cors,
|
cors,
|
||||||
EnvironmentVariable,
|
EnvironmentVariable,
|
||||||
@ -14,14 +13,9 @@ const weather = introspect.graphql({
|
|||||||
url: "https://graphql-weather-api.herokuapp.com/",
|
url: "https://graphql-weather-api.herokuapp.com/",
|
||||||
});
|
});
|
||||||
|
|
||||||
const myApplication = new Application({
|
|
||||||
name: "app",
|
|
||||||
apis: [weather],
|
|
||||||
});
|
|
||||||
|
|
||||||
// configureWunderGraph emits the configuration
|
// configureWunderGraph emits the configuration
|
||||||
configureWunderGraphApplication({
|
configureWunderGraphApplication({
|
||||||
application: myApplication,
|
apis: [weather],
|
||||||
server,
|
server,
|
||||||
operations,
|
operations,
|
||||||
codeGenerators: [
|
codeGenerators: [
|
||||||
|
@ -11,7 +11,7 @@ npm install && npm start
|
|||||||
Get the weather for Berlin.
|
Get the weather for Berlin.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl -X GET http://localhost:9991/app/main/operations/Weather?city=Berlin
|
curl -X GET http://localhost:9991/operations/Weather?city=Berlin
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -27,7 +27,7 @@ curl -X GET http://localhost:9991/app/main/operations/Weather?city=Berlin
|
|||||||
Try it out (replace `YOUR_PROJECT_ID` with your project id):
|
Try it out (replace `YOUR_PROJECT_ID` with your project id):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl -X GET https://{YOUR_PROJECT_NAME}.wundergraph.dev/app/main/operations/Weather?city=Berlin
|
curl -X GET https://{YOUR_PROJECT_NAME}.wundergraph.dev/operations/Weather?city=Berlin
|
||||||
```
|
```
|
||||||
|
|
||||||
### Make changes
|
### Make changes
|
||||||
@ -38,7 +38,7 @@ curl -X GET https://{YOUR_PROJECT_NAME}.wundergraph.dev/app/main/operations/Weat
|
|||||||
See your changes live in less than 20 seconds.
|
See your changes live in less than 20 seconds.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl -X GET https://{YOUR_PROJECT_NAME}.wundergraph.dev/app/main/operations/Weather?city=Berlin
|
curl -X GET https://{YOUR_PROJECT_NAME}.wundergraph.dev/operations/Weather?city=Berlin
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
952
package-lock.json
generated
952
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wundergraph/sdk": "^0.118.0"
|
"@wundergraph/sdk": "^0.123.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.14.37",
|
"@types/node": "^14.14.37",
|
||||||
|
Loading…
Reference in New Issue
Block a user