J'ai un problème avec phoenix 1.3 + absinthe.Comment utiliser les horodatages dans Absinthe? (Phoenix 1.3)
J'essaie ce code:
schema "urls" do
field :path, :string
timestamps()
end
object :url do
field :id, :id
field :path, :string
field :inserted_at, :datetime
end
Il fonctionne avec id
et path
mais il échoue avec inserted_at
avec:
Inserted_at :datetime is not defined in your schema.
Types must exist if referenced.
lib/absinthe/schema.ex:230: Absinthe.Schema.__after_compile__/2
(stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:121: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1
merci! C'était très utile :) – JAlberto
Comment faire pour géo-localisation? Je veux dire géo-coordonnées (langitude et longitude) dans GraphQl – sdg