lens.js
lens.js copied to clipboard
getProfilles query fails
I've been trying to implement the lens.js in a scaffold-eth framework.
const getProfiles = () => { Lens.ExploreProfiles("MOST_FOLLOWERS", ["STATS"], 10) .then(res => { console.log(res); }) .catch(err => { console.log("error", err); }); };
throws the following:
message: "[GraphQL] Variable "$request" cannot be non-input type "ExploreProfileResult!".\n[GraphQL] Variable "$request" of type "ExploreProfileResult!" used in position expecting type "ExploreProfilesRequest!"." name: "CombinedError" networkError: undefined
The getPublications function returns successfully that's why I'm thrown off by this error.
Hey @Ataxia123 👋
I have checked this API on GraphQL playground and due to some issue it was not working when you add a dynamic variables. I have temporary fixed this issue here fix: temp fixed the explore profile API, but I will take a close look at it tomorrow :)
You can install version 0.1.5 and it should be working fine.
Thank you!
@suhailkakar hi :) my PR #8 may do the trick, please review