conversations
listlengths 4
4
|
---|
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "I need to update a user's email and create a new booking for a travel package to Paris.",
"role": "user"
},
{
"content": "To i need to update a user's email and create a new booking for a travel package to paris., you should use the following GraphQL operations: updateUser, createBooking. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateUser(input: {\n id: \"123\"\n email: \"newemail@example.com\"\n }) {\n id\n email\n }\n createBooking(input: {\n userId: \"123\"\n destination: \"Paris\"\n date: \"2024-10-12\"\n status: \"Confirmed\"\n }) {\n id\n destination\n date\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Fetch all bookings of a user and notify them about upcoming trips.",
"role": "user"
},
{
"content": "To fetch all bookings of a user and notify them about upcoming trips., you should use the following GraphQL operations: user, bookings, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Create an order for a user and send them a confirmation notification.",
"role": "user"
},
{
"content": "To create an order for a user and send them a confirmation notification., you should use the following GraphQL operations: createOrder, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Process a payment for a booking and send a receipt to the user.",
"role": "user"
},
{
"content": "To process a payment for a booking and send a receipt to the user., you should use the following GraphQL operations: processPayment, sendNotification. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n processPayment(input: {\n bookingId: \"789\"\n amount: 500.00\n currency: \"USD\"\n }) {\n id\n status\n transactionId\n }\n sendNotification(input: {\n userId: \"123\"\n message: \"Your booking/order has been confirmed!\"\n type: \"Confirmation\"\n }) {\n id\n message\n sentAt\n }\n}\n```",
"role": "assistant"
}
] |
[
{
"content": "You have access to the following GraphQL schema:\n\nEntities:\nUser: fields: ['id', 'name', 'email', 'bookings']; relationships: {'bookings': 'Booking'}\nBooking: fields: ['id', 'userId', 'destination', 'date', 'status']; relationships: {'userId': 'User'}\nPayment: fields: ['id', 'bookingId', 'amount', 'currency', 'status']; relationships: {'bookingId': 'Booking'}\nNotification: fields: ['id', 'userId', 'message', 'type', 'sentAt']; relationships: {'userId': 'User'}\nProduct: fields: ['id', 'name', 'price', 'stock']; relationships: {}\nOrder: fields: ['id', 'userId', 'productId', 'quantity', 'totalPrice', 'status']; relationships: {'userId': 'User', 'productId': 'Product'}\n\nOperations:\nuser, bookings, payments, orders, updateUser, createBooking, processPayment, sendNotification, createOrder, updateProduct",
"role": "system"
},
{
"content": "Update product stock and create an order for the updated product.",
"role": "user"
},
{
"content": "To update product stock and create an order for the updated product., you should use the following GraphQL operations: updateProduct, createOrder. Here's the GraphQL query:",
"role": "assistant"
},
{
"content": "```graphql\nmutation {\n updateProduct(input: {\n id: \"456\"\n stock: 20\n }) {\n id\n stock\n }\n createOrder(input: {\n userId: \"123\"\n productId: \"456\"\n quantity: 2\n totalPrice: 100.00\n status: \"Pending\"\n }) {\n id\n totalPrice\n status\n }\n}\n```",
"role": "assistant"
}
] |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 31