## 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>
6 lines
172 B
TypeScript
6 lines
172 B
TypeScript
export const isPlainObject = (
|
|
input: unknown,
|
|
): input is Record<string, unknown> => {
|
|
return typeof input === 'object' && input !== null && !Array.isArray(input);
|
|
};
|