react-relay
Version:
A framework for building GraphQL-driven React applications.
6 lines (5 loc) • 385 B
JavaScript
;
function isRelayEnvironment(environment) {
return typeof environment === 'object' && environment !== null && typeof environment.check === 'function' && typeof environment.lookup === 'function' && typeof environment.retain === 'function' && typeof environment.execute === 'function' && typeof environment.subscribe === 'function';
}
module.exports = isRelayEnvironment;