upgrade sdk

This commit is contained in:
starptech 2022-11-21 23:14:08 +01:00
parent 1a3664605f
commit 95847137db
5 changed files with 48 additions and 941 deletions

View File

@ -1,19 +1,14 @@
{
"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"
}
}
}
}
}
}
}

View File

@ -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: [

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@wundergraph/sdk": "^0.118.0"
"@wundergraph/sdk": "^0.123.2"
},
"devDependencies": {
"@types/node": "^14.14.37",