lens.js icon indicating copy to clipboard operation
lens.js copied to clipboard

getProfilles query fails

Open Ataxia123 opened this issue 2 years ago • 2 comments

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.

Ataxia123 avatar Jul 31 '22 18:07 Ataxia123

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 avatar Jul 31 '22 18:07 suhailkakar

@suhailkakar hi :) my PR #8 may do the trick, please review

butovsky avatar Sep 05 '22 20:09 butovsky