Skip to content

Instantly share code, notes, and snippets.

View Aryan-Jagadale's full-sized avatar
🎯
Focusing

Aryan Jagadale Aryan-Jagadale

🎯
Focusing
View GitHub Profile
@Aryan-Jagadale
Aryan-Jagadale / 8.16 user and logging in.js
Last active June 27, 2023 11:58
Full Stack Open GraphQL solution
const { ApolloServer } = require("@apollo/server");
const { startStandaloneServer } = require("@apollo/server/standalone");
const { GraphQLError } = require("graphql");
const { v1: uuid } = require("uuid");
const jwt = require("jsonwebtoken");
const mongoose = require("mongoose");
mongoose.set("strictQuery", false);
const Author = require("./models/author");
const Book = require("./models/book");