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,17 +1,12 @@
{
"projects": {
"app": {
"name": "app",
"schemaPath": "generated/wundergraph.app.schema.graphql",
"extensions": {
"endpoints": {
"app": {
"introspect": false,
"url": "http://localhost:9991/app/main/graphql",
"headers": {
"user-agent": "WunderGraph Client"
}
}
"project": {
"schemaPath": "generated/wundergraph.schema.graphql",
"extensions": {
"endpoint": {
"introspect": false,
"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: [