manikandanraji / twitter-clone-backend Goto Github PK
View Code? Open in Web Editor NEWTwitter Clone Backend (Prisma + GraphQL)
Twitter Clone Backend (Prisma + GraphQL)
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..
@manikandanraji reverse engineering your backend and the GraphQL server is appears that the feed query does not contain retweets only tweets. Is this correct, or did I miss something?
I opened this in @manikandanraji/twitter-clone-frontend#3, but it should be added to the README here as well.
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
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
}
type Mutation {
addPage(
name: String!
url: String!
# relation fields
modules: [ModuleInput]
createdBy: ID!
updatedBy: ID!
): Page!
}
input ModuleInput {
id: ID
}
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);
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!
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.