Giter VIP home page Giter VIP logo

twitter-clone-backend's People

Contributors

manikandanraji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

twitter-clone-backend's Issues

Project not found on signup or login

A toastified notification saying "Project not found" pops up when signing up or logging in. I assume this is because of crashed backend on heroku..

How can I add many to many relation values in mutation step

Hi,

I have two tables as below. I try to add a page with multiple modules value. If I send one module value, it works. But I want to send multiple values. How can I send them? Thanks

Table Structures

type Module {
id: ID!
name: String!
pages: [Page]
createdBy: User
updatedBy: User
createdAt: String
updatedAt: String
}

type Page {
id: ID!
name: String!
url: String!
modules: [Module]
createdBy: User
updatedBy: User
createdAt: String
updatedAt: String
}

Add Page Schema

type Mutation {
addPage(
name: String!
url: String!
# relation fields
modules: [ModuleInput]
createdBy: ID!
updatedBy: ID!
): Page!
}

input ModuleInput {
id: ID
}

Add Page Mutation

  const page = await ctx.prisma
    .createPage({
      ...args,
      modules: {
        connect: {
          id: args.modules[0].id,
        },
      },
      createdBy: {
        connect: {
          id: args.createdBy,
        },
      },
      updatedBy: {
        connect: {
          id: args.updatedBy,
        },
      },
    })
    .$fragment(PAGE_FRAGMENT);

When Update XXX Where Clause Problem

Hi,

I tried to update my company table but where clause is missing.

How can I set up the company.graphql file?

Thank you

File Content as below:
type Mutation {
updateCompany(
id: ID!
name: String!
address1: String
address2: String
): Company!
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.