Skip to content

Commit 690b8f0

Browse files
committed
fix linting
1 parent 7131844 commit 690b8f0

File tree

1 file changed

+33
-45
lines changed

1 file changed

+33
-45
lines changed

src/graphql/types/User/organizationsWhereMember.ts

Lines changed: 33 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -235,52 +235,40 @@ export const resolveOrganizationsWhereMember = async (
235235

236236
User.implement({
237237
fields: (t) => ({
238-
organizationsWhereMember: t.connection({
239-
description:
240-
"GraphQL connection to traverse through the organizations the user is a member of.",
241-
args: {
242-
filter: t.arg.string({ required: false }),
238+
organizationsWhereMember: t.connection(
239+
{
240+
description:
241+
"GraphQL connection to traverse through the organizations the user is a member of.",
242+
args: {
243+
filter: t.arg.string({ required: false }),
244+
},
245+
resolve: resolveOrganizationsWhereMember,
246+
type: Organization,
247+
complexity: (args) => {
248+
return {
249+
field: envConfig.API_GRAPHQL_OBJECT_FIELD_COST,
250+
multiplier: args.first || args.last || 1,
251+
};
252+
},
243253
},
244-
resolve: resolveOrganizationsWhereMember,
245-
type: Organization,
246-
complexity: (args) => {
247-
return {
248-
field: envConfig.API_GRAPHQL_OBJECT_FIELD_COST,
249-
multiplier: args.first || args.last || 1,
250-
};
254+
{
255+
edgesField: {
256+
complexity: {
257+
field: envConfig.API_GRAPHQL_OBJECT_FIELD_COST,
258+
multiplier: 1,
259+
},
260+
},
261+
description: "",
251262
},
252-
},
253-
organizationsWhereMember: t.connection({
254-
description:
255-
"GraphQL connection to traverse through the organizations the user is a member of.",
256-
args: {
257-
filter: t.arg.string({ required: false }),
258-
},
259-
resolve: resolveOrganizationsWhereMember,
260-
type: Organization,
261-
complexity: (args) => {
262-
return {
263-
field: envConfig.API_GRAPHQL_OBJECT_FIELD_COST,
264-
multiplier: args.first || args.last || 1,
265-
};
266-
},
267-
}, {
268-
edgesField: {
269-
complexity: {
270-
field: envConfig.API_GRAPHQL_OBJECT_FIELD_COST,
271-
multiplier: 1,
272-
},
273-
},
274-
description: "",
275-
},
276-
{
277-
nodeField: {
278-
complexity: {
279-
field: envConfig.API_GRAPHQL_OBJECT_FIELD_COST,
280-
multiplier: 1,
281-
},
282-
},
283-
description: "",
284-
}),
263+
{
264+
nodeField: {
265+
complexity: {
266+
field: envConfig.API_GRAPHQL_OBJECT_FIELD_COST,
267+
multiplier: 1,
268+
},
269+
},
270+
description: "",
271+
},
272+
),
285273
}),
286274
});

0 commit comments

Comments
 (0)