The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { gql } from '@apollo/client';
export const OBJECT_METADATA_FRAGMENT = gql`
fragment ObjectMetadataFields on Object {
id
universalIdentifier
nameSingular
namePlural
labelSingular
labelPlural
color
description
icon
isRemote
isActive
isSystem
isAuditLogged
isUIEditable
isUICreatable
createdAt
updatedAt
labelIdentifierFieldMetadataId
imageIdentifierFieldMetadataId
applicationId
shortcut
isLabelSyncedWithName
isSearchable
openRecordIn
duplicateCriteria
searchFieldMetadataList {
id
fieldMetadataId
tsVectorFieldMetadataId
position
createdAt
updatedAt
}
indexMetadataList {
id
createdAt
updatedAt
name
indexWhereClause
indexType
isUnique
applicationId
isSystemSideEffect
indexFieldMetadataList {
id
fieldMetadataId
subFieldName
createdAt
updatedAt
order
}
}
fieldsList {
id
universalIdentifier
type
name
label
description
icon
isActive
isSystem
isUIEditable
isSystemSideEffect
isNullable
isUnique
isSearchable
createdAt
updatedAt
defaultValue
options
settings
isLabelSyncedWithName
morphId
applicationId
relation {
type
sourceObjectMetadata {
id
nameSingular
namePlural
}
targetObjectMetadata {
id
nameSingular
namePlural
}
sourceFieldMetadata {
id
name
}
targetFieldMetadata {
id
name
}
}
morphRelations {
type
sourceObjectMetadata {
id
nameSingular
namePlural
}
targetObjectMetadata {
id
nameSingular
namePlural
}
sourceFieldMetadata {
id
name
}
targetFieldMetadata {
id
name
}
}
}
}
`;