Fetch messages with hard coded thread id (#3613)
* Fetch messages with hard coded thread id * Fix test * Use first workspace member or person names --------- Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
@ -27,12 +27,32 @@ const getOneToManyRelation = () => {
|
||||
label
|
||||
url
|
||||
}
|
||||
accountOwner
|
||||
{
|
||||
id
|
||||
}
|
||||
linkedinLink
|
||||
{
|
||||
label
|
||||
url
|
||||
}
|
||||
attachments
|
||||
{
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
domainName
|
||||
opportunities
|
||||
{
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
annualRecurringRevenue
|
||||
{
|
||||
amountMicros
|
||||
@ -41,6 +61,30 @@ domainName
|
||||
createdAt
|
||||
address
|
||||
updatedAt
|
||||
activityTargets
|
||||
{
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
favorites
|
||||
{
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
people
|
||||
{
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
name
|
||||
accountOwnerId
|
||||
employees
|
||||
@ -89,9 +133,17 @@ const getOneToManyFromRelationField = () => {
|
||||
personId
|
||||
pointOfContactId
|
||||
updatedAt
|
||||
company
|
||||
{
|
||||
id
|
||||
}
|
||||
companyId
|
||||
pipelineStepId
|
||||
probability
|
||||
pipelineStep
|
||||
{
|
||||
id
|
||||
}
|
||||
closeDate
|
||||
amount
|
||||
{
|
||||
@ -100,6 +152,14 @@ closeDate
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
pointOfContact
|
||||
{
|
||||
id
|
||||
}
|
||||
person
|
||||
{
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
|
||||
@ -48,7 +48,6 @@ export const useMapFieldMetadataToGraphQLQuery = () => {
|
||||
{
|
||||
id
|
||||
${(relationMetadataItem?.fields ?? [])
|
||||
.filter((field) => field.type !== 'RELATION')
|
||||
.map((field) =>
|
||||
mapFieldMetadataToGraphQLQuery(field, maxDepthForRelations - 1),
|
||||
)
|
||||
@ -68,7 +67,6 @@ export const useMapFieldMetadataToGraphQLQuery = () => {
|
||||
{
|
||||
id
|
||||
${(relationMetadataItem?.fields ?? [])
|
||||
.filter((field) => field.type !== 'RELATION')
|
||||
.map((field) =>
|
||||
mapFieldMetadataToGraphQLQuery(field, maxDepthForRelations - 1),
|
||||
)
|
||||
@ -90,7 +88,6 @@ export const useMapFieldMetadataToGraphQLQuery = () => {
|
||||
node {
|
||||
id
|
||||
${(relationMetadataItem?.fields ?? [])
|
||||
.filter((field) => field.type !== 'RELATION')
|
||||
.map((field) =>
|
||||
mapFieldMetadataToGraphQLQuery(field, maxDepthForRelations - 1),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user