Skip to content

Instantly share code, notes, and snippets.

@asynchroza
Created December 4, 2023 19:49
Show Gist options
  • Save asynchroza/a9cb8b16f0f5a3e0dc5c90812241cda3 to your computer and use it in GitHub Desktop.
Save asynchroza/a9cb8b16f0f5a3e0dc5c90812241cda3 to your computer and use it in GitHub Desktop.
GraphQL and SQL task

Task: GraphQL and SQL for Company-User Associations

Imagine you're developing a website similar to LinkedIn, where users are affiliated with particular companies, and some users may be associated with multiple companies. Your objective is to build a GraphQL API integrated with an SQL database to achieve the following:

  • Fetch details about a company and all its linked users in a single database transaction.
  • Implement the capability to update a company's information, with the restriction that the publicly facing name can be changed only once per week.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment