You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding directives, my backend is already working and returns queries as it should, but I don't know how to proceed in the frontend, if I put directive in the query directly it works fine, but I need a value to be passed in the directive that informs the language used.
Can someone help me?
seachCandidates.ts
import { gql } from '@apollo/client';
export default gql`
directive @locale(lang: LocaleEnum) on FIELD_DEFINITION
query SearchCandidates($filters: SearchCandidateFilter!) {
searchCandidates(filters: $filters) @locale(lang: en) {
candidates {
candidate {
id
name
image
positionTitle
cltSalary
pjSalary
usdSalary
lastApprovedTime
city {
id
name
}
summary
workRemote
localWorkPreference
experiences {
id
company
startDate
endDate
currentJob
}
skills {
id
level {
value
text
}
mainTech
technology {
id
name
}
}
educations {
id
institution
educationStatus
endYear
}
candidateFocus {
id
focus {
id
description
}
experienceLevel {
value
text
}
order
}
candidateCities {
id
order
city {
id
name
}
}
}
lastBidSent {
id
status
createdAt
companyUser {
id
name
}
}
isFavorite
lastTimeViewed
}
totalFilteredCount
}
}
`;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question regarding directives, my backend is already working and returns queries as it should, but I don't know how to proceed in the frontend, if I put directive in the query directly it works fine, but I need a value to be passed in the directive that informs the language used.
Can someone help me?
seachCandidates.ts
codegen.yml
Beta Was this translation helpful? Give feedback.
All reactions