@things-factory/scene-graphql
Advanced tools
Comparing version 3.0.0-beta.74 to 3.0.0-beta.78
{ | ||
"name": "@things-factory/scene-graphql", | ||
"description": "Graphql datasource component for things-scene", | ||
"version": "3.0.0-beta.74", | ||
"version": "3.0.0-beta.78", | ||
"things-scene": true, | ||
@@ -28,3 +28,3 @@ "browser": "src/index.js", | ||
}, | ||
"gitHead": "f4c9f465cd0636e5190f36862b4cdef9df2c0e6b" | ||
"gitHead": "e2279472f1a0c464cf6ff1c813a6cfc89af0ace2" | ||
} |
@@ -112,5 +112,5 @@ /* | ||
static get image() {} | ||
static get image() { } | ||
render(context) {} | ||
render(context) { } | ||
@@ -157,11 +157,22 @@ ready() { | ||
var query = this.query | ||
var variables = this.value | ||
if (client && query) { | ||
this.client = this.root.findById(client).client | ||
var response | ||
if (typeof (variables) === "object") { | ||
response = await this.client.query({ | ||
query: gql` | ||
${query} | ||
`, | ||
variables: variables | ||
}) | ||
} else { | ||
response = await this.client.query({ | ||
query: gql` | ||
${query} | ||
` | ||
}) | ||
} | ||
var response = await this.client.query({ | ||
query: gql` | ||
${query} | ||
` | ||
}) | ||
@@ -168,0 +179,0 @@ console.log('response', response) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64377
702