upgrade sdk
This commit is contained in:
parent
1a3664605f
commit
95847137db
@ -1,13 +1,10 @@
|
||||
{
|
||||
"projects": {
|
||||
"app": {
|
||||
"name": "app",
|
||||
"schemaPath": "generated/wundergraph.app.schema.graphql",
|
||||
"project": {
|
||||
"schemaPath": "generated/wundergraph.schema.graphql",
|
||||
"extensions": {
|
||||
"endpoints": {
|
||||
"app": {
|
||||
"endpoint": {
|
||||
"introspect": false,
|
||||
"url": "http://localhost:9991/app/main/graphql",
|
||||
"url": "http://localhost:9991/graphql",
|
||||
"headers": {
|
||||
"user-agent": "WunderGraph Client"
|
||||
}
|
||||
@ -15,5 +12,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
import {
|
||||
Application,
|
||||
configureWunderGraphApplication,
|
||||
cors,
|
||||
EnvironmentVariable,
|
||||
@ -14,14 +13,9 @@ const weather = introspect.graphql({
|
||||
url: "https://graphql-weather-api.herokuapp.com/",
|
||||
});
|
||||
|
||||
const myApplication = new Application({
|
||||
name: "app",
|
||||
apis: [weather],
|
||||
});
|
||||
|
||||
// configureWunderGraph emits the configuration
|
||||
configureWunderGraphApplication({
|
||||
application: myApplication,
|
||||
apis: [weather],
|
||||
server,
|
||||
operations,
|
||||
codeGenerators: [
|
||||
|
@ -11,7 +11,7 @@ npm install && npm start
|
||||
Get the weather for Berlin.
|
||||
|
||||
```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):
|
||||
|
||||
```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
|
||||
@ -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.
|
||||
|
||||
```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": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@wundergraph/sdk": "^0.118.0"
|
||||
"@wundergraph/sdk": "^0.123.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.14.37",
|
||||
|
Loading…
Reference in New Issue
Block a user