Questions

  • How do I pass controller without ‘invalid date error’ error

    0 I’m trying to pass the date from the datepicker and timepicker but it always gives an invalid date error I already tried .year .month .day .hour. minute. DateTime.parse doesnt wor enter image description here I already tried .year .month .day .hour. .minute parse, toString nothing work import ‘package:datetime_picker_formfield_new/datetime_picker_formfield.dart’; import ‘package:flutter/material.dart’; import ‘package:get/get.dart’; import ‘package:horario/features/Date/presentation/controller/date_controller.dart’; […]

  • Python requests & Graphql API: How to use variables?

    0 I am working on creating users on my wiki.js using graphql api and python’s request package. I am able to create a user normally(hard coded) but I want to use variables. Here is the code I tried: # we have imported the requests module import requests # defined a URL variable that we will […]

  • Is there an Open/Public API for Facebook Video Content?

    0 I’m looking for information on whether there exists an open or public API that provides access to Facebook video content. Similar to Instagram’s GraphQL API, I’d like to know if there is any documented resource available on the internet for accessing Facebook video content programmatically. Please provide details or links if such resources exist. […]

  • GitLab: How to query history commits of certain branch with GraphQL

    0 I’m trying to query the commit history of a project’s repository of certain branch with GraphQL, is this possible? And there is no related samples I can find in Gitlab docs, or did I have to use the REST API which is much more viable. I’ll be appreciated if anyone have any ideas about […]

  • How to avoid specifying field name in Octokit GraphQL

    1 Example query: mutation prrt($input: AddPullRequestReviewThreadInput!) { addPullRequestReviewThread(input: $input) { thread { id } } } Using Octokit, I have to type like this: const mutateFn = graphql<{ addPullRequestReviewThread: AddPullRequestReviewThreadPayload; }>; const response = await mutateFn(mutation, { input, headers }); The addPullRequestReviewThread: part is quite long. Can this be automated/inferred somehow? I’d like to just […]

  • GraphQL Client for C++ and .NET

    7 Is there an GraphQL client library available for C++ (Windows and Linux) and .NET? From Apollo website I can only see clients for React, Vue.js, Angular, Android, iOS, Ember and Meteor. If there is an Apollo client for C++ and .NET, where is it located ? If not, what should be used ? graphql […]

  • Graphql & requests package py: How to use variables in the query body

    -2 I am using requests package from python to use graphql api to create users in my wiki.js I have the following code where I want to use variables for email and name fields. They work when hard coded but I need it to work with variables. Code: # we have imported the requests module […]

  • How to create custom Authorization Attribute for GraphQL Endpoints to allow users base on their “permission” claim in access token

    0 I’m currently working on a .NET Core project that utilizes both regular API endpoints and GraphQL endpoints using HotChocolate. I implemented the authentication for both endpoints and it working. [Authorize] // this attribute from using Microsoft.AspNetCore.Authorization; [HttpPost("GetCountryHolidays")] public async Task<IList<GetCountryDetails>> GetHolidays(GetHolidaysCommand command) { return await _mediator.Send(command); } Graphql endpoint [Authorize] // this attribute from […]

  • Implementing GraphQL stitch with RabbitMQ in NestJS

    0 I’m working on a NestJS task where I must use GraphQL stitching with RabbitMQ. I actually have explored various options, however am having trouble finding clean and exact commands on a way to obtain this integration. problem: I want to set up a microservices architecture using GraphQL stitching, and I’ve chosen RabbitMQ as the […]

  • Docker Containers failing to connect to each other – connection refused

    1 I have a simple application orchestrated by Docker Compose. It consists of a simple frontend (built using NextJS), a GraphQL API (built with NestJS), and a microservice (built with NestJS). The architecture is as follows: The frontend speaks directly to the GraphQL service. The GraphQL service communicates to the microservice via a NATS server […]