Learn

Best way to learn is through experience oritented questions and answers

Filter: apollocssdatabasegraphqlhostinghttpimagemarkdownmutationnextjsnodepothosprismareactresponsivesecurityseotailwindtypestypescriptvscode
seonextjs

How to create sitemap in Next JS when using app router?

seonextjs

Where to add a robots.txt in Next JS 14?

seonextjs

How to generate metadata in NextJS 14?

seonextjs

Where and how to add icons like favico?

markdown

How to add a todo list in markdown file?

seonextjs

How to add a custom meta tag in a static way?

seo

How to verify your website on google search console?

csstailwind

How to disable automatic dark mode in tailwind?

cssnextjsresponsiveimage

How to render a responsive image in NextJS 13 which generates blur url automatically?

seomarkdownreact

Prism from react-syntax-highlighter has a large footprint of around 420kb, how can you reduce it?

typescript

How to tell typescript compiler that the value won't be null or undefined when it's not able to infer itself?

typescript

What's the use case of ts-node-dev package?

vscode

In VSCode, in a NextJs project, eslint is working but it is still not showing Typescript errors, why?

prismanode

What does the command npx prisma init do?

databasehosting

What's the easiest way to host a free db for practice?

prisma

How to model a one-to-many relation between two models in prisma?

prisma

What's the right way to think about your prisma schema?

prisma

How to perform a prisma db migration?

prismadatabase

Give an example of seed file for prisma

prisma

How to run a prisma seed file?

graphql

What are the 2 approaches to building a GraphQL schema?

graphql

What scalar data types does graphql support by default?

graphql

How to define a custom scalar type in graphql like Date?

graphql

How can you be sure that your frontend graphql query will stay in sync with the backend schema?

graphqlprismapothos

What are the roles of Prisma, Pothos and Graphql codegen in a typescript node js and react full-stack project?

graphql

What accurately describes a graph in GraphQL?

graphql

In simplest terms what is a schema in Graphql?

graphql

What is the best practice for name of a type in graphql?

graphql

Give an example of graphql type using SDL(Schema Definition Language)

graphql

How to write description for a schema?

graphql

What is the use of graphql-tag package?

graphql

What's the naming convention for query names?

graphql

Is Mutation a type?

graphql

What is a good way to name mutations?

graphqlmutation

When a mutation updates more than one object, which one should we return? In addition what common fields should be added to a mutation response?

graphqlmutation

When returning a response for mutation, why should the type of the data being returned should be nullable?

graphqlapollo

When calling a *DataSource in Apollo graphql, how to catch errors?

graphqlmutation

Which hook do we need to use for calling mutation from client react side?

graphqlmutation

What does calling useMutation return?

graphqltypes

On the client side (React) when do we need to regenerate types in graphql?

graphql

Which data structure does graphql use to check if a query is valid?

graphql

Is the resolver function executed for every field in a query?

graphql

Which of these are responsibilities of a resolver function?

graphql

What questions to ask ourselves before designing graphql schema?

graphql

What if the API from where you will resolve data using graphql contains bunch of extra stuff that you don't need?

graphql

Can a graphql API connect to multiple data sources?

http

What is a N + 1 problem in API call?

graphql

What is RESTDataSource?

security

When to use encodeURIComponent?

graphql

What should a resolver's name correspond to?

graphql

Explain a resolver's params: parent, args, contextValue, info

graphql

How to pass contextValue to your resolver function?

graphql

Within a graphql server response, which keys can you expect to find in the JSON object?

graphql

Is it possible to get partial response from a graphql query in case of an error?

graphql

When you query a graphql field that is not in the schema, what error code will the server send?

graphql

How to setup an apollo client?

graphql

Given this schema field: missions: [Mission!], what does it mean?

graphql

Where can we add entry points to our schema?

graphql

Give examples of how to pass arguments

graphql

What is a resolver chain?

graphql

How to make sure that a query accepts a non-nullable string variable isPresent?

graphql

How to pass a trackId variable from client side using useQuery?