Files
twenty/packages/twenty-server/src/utils/is-plain-object.ts
Weiko f6fd92adcb [POC] add graphql query runner (#6747)
## Context
The goal is to replace pg_graphql with our own ORM wrapper (TwentyORM).
This PR tries to add some parsing logic to convert graphql requests to
send to the ORM to replace pg_graphql implementation.

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2024-08-27 17:06:39 +02:00

6 lines
172 B
TypeScript

export const isPlainObject = (
input: unknown,
): input is Record<string, unknown> => {
return typeof input === 'object' && input !== null && !Array.isArray(input);
};