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
We are using apollo graphql for our project. We have a service called employee service with the reference resolvers written over there.
type time_tracker {
id: Int
user_id: Int
task_name: String
project_name: String
category: String
employee_bio: EmployeeBio
}
type EmployeeBio @key(fields: "user_id", resolvable: false) {
user_id: ID!
}
We are using apollo graphql for our project. We have a service called employee service with the reference resolvers written over there.
type time_tracker {
id: Int
user_id: Int
task_name: String
project_name: String
category: String
employee_bio: EmployeeBio
}
type EmployeeBio @key(fields: "user_id", resolvable: false) {
user_id: ID!
}
@time_tracker.field("employee_bio")
def resolve_employee_bio(obj, user_id):
return {"user_id": user_id}
This returns only the user_id with the other fields as null
Type from employee service
type EmployeeBio @key(fields: "user_id") @Shareable {
id: ID!
user_id: ID!
first_name: String
last_name: String
other_name: String
full_name: String
}
The text was updated successfully, but these errors were encountered: