Questions tagged [absinthe]

For issues relating to the Absinthe GraphQL implementation for Elixir.

Absinthe is an implementation for going far beyond GraphQL specification basics.

83 questions
0
votes
1 answer

Elixir Absinthe input_object

Why input_object in Elixir Absinthe is not working? like input_object :vehicle_detail do field :registrationNo, :string field :imageUrl, :string end mutation do field :create_user, type: :user do arg :vehicle_details,…
Kishore Relangi
  • 1,928
  • 16
  • 18
0
votes
2 answers

Authorization for subscriptions Graphql (Absinthe) with token

I'm trying to add authentication to this subscription test, since I keep getting Not Authorized when I run mix test. I've seen that you need to add a login mutation to the push_doc function but I was wondering. Is there any way to use only the…
0
votes
1 answer

elixir absinthe custom scalar :datetime import error

i have create so many schema, but when i try to import custom scalar type :datetime from absinthe. then it was giving me error like this == Compilation error in file lib/project_name_web/schema.ex == ** (Absinthe.Schema.Error) Invalid…
Vinay Pandya
  • 3,020
  • 2
  • 26
  • 42
0
votes
1 answer

How to run GraphQL queries in Elixir/Phoenix controllers without removing the generated CRUD web pages?

I have created a Phoenix app in Elixir. I used the generation tool to create all the crud functionality and the crud pages. It currently uses: def index(conn, _params) do data = Repo.all(Object) render(conn, "index.html", data: data) end How do…
Errol Hassall
  • 398
  • 3
  • 16
0
votes
3 answers

How to delete a photo from a database using Elixir and GraphQL

I gave been following the tutorial made by EQuimper the Instagram clone. I have been trying to extend the application further via the backend as the front end isn't of concern at the moment. I am trying to implement a delete photo feature but it…
Errol Hassall
  • 398
  • 3
  • 16
0
votes
1 answer

Ecto query doesn't work on Absinthe resolution

I'm trying to get working a simple query with Absinthe#Batch, but the function where the Ecto query is being executed doesn't return any result. I added some tracing to count the records on the db. It is expected to return always 1, but doesn't. The…
Augusto Pedraza
  • 538
  • 3
  • 18
0
votes
1 answer

Adding aggregate fields to elixir graphql

I am using absinthe with elixir (phoenix 1.3). I have a blog app that has Users, Posts, and Likes, and the likes are joined with a many-to-many relationship between Users and Posts. schema "users" do field :email, :string field :handle,…
Mark Karavan
  • 2,654
  • 1
  • 18
  • 38
0
votes
0 answers

Fetching fields per type of a query in the resolver

Q: I would like to get to know the fields a user is selecting in a GraphQL query within the Absinthe graphql framework. I have a hard time poking around in %Absinthe.Resolution{} as it is a vast blob of state, that goes with fragmented documentation…
Overbryd
  • 4,612
  • 2
  • 33
  • 33
1 2 3 4 5
6