INNER CODE UNIT · TypeScript

warnOfIndependentResolveFields

OS-Guild/graphql-to-mongodb · src/graphQLFilterType.ts:135

function warnOfIndependentResolveFields(type: GraphQLFieldsType): void {
    cache(warnedIndependentResolvers, type.toString(), () => {
        const fields =
            getTypeFields(type, (key, field) =>
                field.resolve && !Array.isArray(field.dependencies))();

        Object.keys(fields).forEach(key =>
            warn(`Field ${key} of type ${type} has a resolve function and no dependencies`));

        return 1;
    });
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…