14 lines
384 B
JavaScript
14 lines
384 B
JavaScript
export var selectURI = function (operation, fallbackURI) {
|
|
var context = operation.getContext();
|
|
var contextURI = context.uri;
|
|
if (contextURI) {
|
|
return contextURI;
|
|
}
|
|
else if (typeof fallbackURI === "function") {
|
|
return fallbackURI(operation);
|
|
}
|
|
else {
|
|
return fallbackURI || "/graphql";
|
|
}
|
|
};
|
|
//# sourceMappingURL=selectURI.js.map
|