Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const getDefaultScalarArgValue = (parentField, arg, argType) => {
return GraphiQLExplorer.defaultValue(argType);
};
.includes('DESC')
) {
return {kind: 'EnumValue', value: 'DESC'};
} else if (
arg.name === 'field' &&
argType
.getValues()
.map(x => x.name)
.includes('CREATED_AT')
) {
return {kind: 'EnumValue', value: 'CREATED_AT'};
}
}
return GraphiQLExplorer.defaultValue(argType);
}
return GraphiQLExplorer.defaultValue(argType);
}
export const getDefaultScalarArgValue = (parentField, arg, argType) => {
return GraphiQLExplorer.defaultValue(argType);
};
.includes("DESC")
) {
return { kind: "EnumValue", value: "DESC" };
} else if (
arg.name === "field" &&
argType
.getValues()
.map(x => x.name)
.includes("CREATED_AT")
) {
return { kind: "EnumValue", value: "CREATED_AT" };
}
}
return GraphiQLExplorer.defaultValue(argType);
}
return GraphiQLExplorer.defaultValue(argType);
}