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
MicroSoftHelp

@RayhanADev
k