mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
This commit is contained in:
commit
565d02cd79
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ const jsTypeToGraphQLType = typeName => {
|
|||
return "[String]";
|
||||
|
||||
case "Object":
|
||||
return "???";
|
||||
return "JSON";
|
||||
|
||||
case "Date":
|
||||
return "Date";
|
||||
|
@ -103,7 +103,7 @@ export const GraphQLSchema = {
|
|||
// console.log(field, key)
|
||||
const fieldType = jsTypeToGraphQLType(field.type.name);
|
||||
|
||||
if (key.indexOf('$') === -1 && fieldType !== "???") { // skip fields with "$" and unknown fields
|
||||
if (key.indexOf('$') === -1) { // skip fields with "$"
|
||||
|
||||
// 1. main schema
|
||||
mainSchema.push(`${key}: ${fieldType}`);
|
||||
|
|
Loading…
Add table
Reference in a new issue