Skip to content

Commit

Permalink
chore: fix linting & build
Browse files Browse the repository at this point in the history
  • Loading branch information
phortx committed Nov 18, 2020
1 parent dd9c151 commit b6a878d
Show file tree
Hide file tree
Showing 8 changed files with 341 additions and 341 deletions.
2 changes: 1 addition & 1 deletion dist/vuex-orm-graphql.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7761,7 +7761,7 @@ function toPrimaryKey(input) {
function isGuid(value) {
var regex = /[a-f0-9]{8}(?:-?[a-f0-9]{4}){3}-?[a-f0-9]{12}/i;
var match = regex.exec(value);
return match != null;
return match !== null;
}

/**
Expand Down
224 changes: 112 additions & 112 deletions dist/vuex-orm-graphql.esm-bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -7659,7 +7659,7 @@ function toPrimaryKey(input) {
function isGuid(value) {
const regex = /[a-f0-9]{8}(?:-?[a-f0-9]{4}){3}-?[a-f0-9]{12}/i;
const match = regex.exec(value);
return match != null;
return match !== null;
}

/**
Expand Down Expand Up @@ -14712,86 +14712,86 @@ class DefaultAdapter {
}
}

var introspectionQuery = `
query Introspection {
__schema {
types {
name
description
fields(includeDeprecated: true) {
name
description
args {
name
description
type {
name
kind
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
type {
name
kind
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
inputFields {
name
description
type {
name
kind
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}
var introspectionQuery = `
query Introspection {
__schema {
types {
name
description
fields(includeDeprecated: true) {
name
description
args {
name
description
type {
name
kind

ofType {
kind

name
ofType {
kind
name

ofType {
kind
name
}
}
}
}
}

type {
name
kind

ofType {
kind

name
ofType {
kind
name

ofType {
kind
name
}
}
}
}
}

inputFields {
name
description
type {
name
kind

ofType {
kind

name
ofType {
kind
name

ofType {
kind
name
}
}
}
}
}
}
}
}
`;

/**
Expand Down Expand Up @@ -15021,54 +15021,54 @@ class QueryBuilder {
const field = context.schema.getMutation(name, true) || context.schema.getQuery(name, true);
let params = this.buildArguments(model, args, false, filter, allowIdFields, field);
path = path.length === 0 ? [model.singularName] : path;
const fields = `
${model.getQueryFields().join(" ")}
${this.buildRelationsQuery(model, path)}
const fields = `
${model.getQueryFields().join(" ")}
${this.buildRelationsQuery(model, path)}
`;
if (multiple) {
const header = `${name}${params}`;
if (context.connectionMode === ConnectionMode.NODES) {
return `
${header} {
nodes {
${fields}
}
}
return `
${header} {
nodes {
${fields}
}
}
`;
}
else if (context.connectionMode === ConnectionMode.EDGES) {
return `
${header} {
edges {
node {
${fields}
}
}
}
return `
${header} {
edges {
node {
${fields}
}
}
}
`;
}
else if (context.connectionMode === ConnectionMode.ITEMS) {
return `
${header} {
items {
${fields}
}
}
return `
${header} {
items {
${fields}
}
}
`;
}
else {
return `
${header} {
${fields}
}
return `
${header} {
${fields}
}
`;
}
}
else {
return `
${name ? name : model.singularName}${params} {
${fields}
}
return `
${name ? name : model.singularName}${params} {
${fields}
}
`;
}
}
Expand Down
Loading

0 comments on commit b6a878d

Please sign in to comment.