Skip to content
Sign upLog in

Repl.it Talk GraphQL/API Template

Profile icon
RayhanADevHacker

NodeJS GraphQL Template

By: RayhanADev

This is a simple NodeJS Template to use Repl.it's API/GraphQL to get information about a user!

How to Use

Everything is already set up! Simply replace the [username] field when you call the getData function!

Example:

getData('RayhanADev');

Output:

{ karma: 653, firstName: 'Rayhan', lastName: 'Arayilakath', bio: 'G’day, name’s Ray and since you came by check out http://bitly/ReplitUserSearch!', isVerified: true, timeCreated: '2020-09-09T12:47:49.218Z', isLoggedIn: false, organization: { name: 'Furret Developer' }, subscription: { planId: 'hacker2' }, roles: [ { name: 'self learner' }, { name: 'explorer' } ] }

Pro Tip: Want to learn how to query GraphQL and make your own project? Learn from my tutorial!

You are viewing a single comment. View All
Profile icon
MocaCDeveloper

@realTronsi

xD I left repl for like a year back in 8th grade, then I came back JUST last year. Then I lost my last account so I had to recreate because I made a go project.
Then I lost my last account because for some reason I made a C project and it just didn't work anymore. Like the terminal would just not load AT ALL.

So ye, here I am with this account :D