🚀 LibraryManagement is a project built using GraphQL for efficient data operations, with SQL Server and EF Core for database management. It provides a flexible system for managing books, authors, and users in a library setting.
- GraphQL for powerful and flexible querying and mutation operations
- SQL Server and EF Core for seamless database access
- Built-in GraphQL Dashboard for easy querying and testing of the API
- Run the project.
- Use the GraphQL dashboard to interact with the API.
- Perform the following operations:
- Mutations: Add new users, authors, and books.
- Queries: Fetch lists of users, books, and authors, and search users by name.
mutation {
addUser(name: "Behzad User") {
id
name
}
}
mutation {
addAuthor(name: "Behzad Author") {
id
name
}
}
mutation {
addBook(input: { title: "My Book", isbn: "1234567890", authorId: 1 }) {
id
title
}
}
query {
authors {
id
name
}
}
query {
books{
id,
title,
isbn,
authorId
author {
name
}
}
}
query{
users(q: "Behzad"){
id
name
borrowedBooks{
id
title
isbn
author{
id
name
}
}
}
}
- Currently, the system allows the addition of users, authors, and books. Contributions are welcome to implement full CRUD operations for these entities.
- Help enhance the project by adding authentication and authorization mechanisms, and secure the GraphQL endpoints with headers.
- GitHub: BehzadDara
- LinkedIn: Behzad Dara