maxmannen
maxmannen
AEAsh Elixir
Created by maxmannen on 3/13/2023 in #support
Filter function do not work...What am I missing? (Returns empty)
!
18 replies
AEAsh Elixir
Created by maxmannen on 3/13/2023 in #support
Filter function do not work...What am I missing? (Returns empty)
Thanks
18 replies
AEAsh Elixir
Created by maxmannen on 3/13/2023 in #support
Filter function do not work...What am I missing? (Returns empty)
search_course_name I mean.
18 replies
AEAsh Elixir
Created by maxmannen on 3/13/2023 in #support
Filter function do not work...What am I missing? (Returns empty)
I caught that one actually. The error was the way I called the action...my editor suggested a string value instead of (:read, %{name="..."}) Still have things to learn about Ash...
18 replies
AEAsh Elixir
Created by maxmannen on 3/13/2023 in #support
Filter function do not work...What am I missing? (Returns empty)
I have an ETS-table with courses (name, code etc). Want to find a course by part of its name.
18 replies
AEAsh Elixir
Created by maxmannen on 2/7/2023 in #support
Problem with override image
Excellent! Thanks!
6 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
Thanks for your help!
21 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
Ahh never mind
21 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
I am making some newbie error here
21 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
Hmm. (Mix) Could not start application ampl_dev: exited in: AmplDev.Application.start(:normal, []) (EXIT) an exception was raised: ** (Ash.Error.Invalid) Input Invalid * country_code, document_type, school_type: has already been taken.
21 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
Error when I compile: Identities: unique_country_document_type_school_type Must specify the pre_check_with option. Can´t find where to put that in the documentation
21 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
Ah. This wont be an issue if I do not use ETS?
21 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
yes we have an error here
{:error,
%Ash.Error.Invalid{
errors: [
%Ash.Error.Invalid.InvalidPrimaryKey{
resource: AshDatastore.Documents.Syllabus,
value: [
country_code: "se",
document_type: "courses",
school_type: "gy"
],
changeset: nil,
query: nil,
error_context: [],
vars: [],
path: [],
stacktrace: #Stacktrace<>,
class: :invalid
}
],
stacktraces?: true,
changeset: nil,
query: nil,
error_context: [],
vars: [],
path: [],
stacktrace: #Stacktrace<>,
class: :invalid
}}
{:error,
%Ash.Error.Invalid{
errors: [
%Ash.Error.Invalid.InvalidPrimaryKey{
resource: AshDatastore.Documents.Syllabus,
value: [
country_code: "se",
document_type: "courses",
school_type: "gy"
],
changeset: nil,
query: nil,
error_context: [],
vars: [],
path: [],
stacktrace: #Stacktrace<>,
class: :invalid
}
],
stacktraces?: true,
changeset: nil,
query: nil,
error_context: [],
vars: [],
path: [],
stacktrace: #Stacktrace<>,
class: :invalid
}}
21 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
json {
"errors": [
{
"code": "NotFound",
"detail": "No syllabus record found with `country_code: se, document_type: courses, school_type: gy`",
"id": "1e851c2a-0b3b-4213-a50b-3eb71d8a2689",
"status": "404",
"title": "Entity Not Found"
}
],
"jsonapi": {
"version": "1.0"
}
}
json {
"errors": [
{
"code": "NotFound",
"detail": "No syllabus record found with `country_code: se, document_type: courses, school_type: gy`",
"id": "1e851c2a-0b3b-4213-a50b-3eb71d8a2689",
"status": "404",
"title": "Entity Not Found"
}
],
"jsonapi": {
"version": "1.0"
}
}
`
21 replies
AEAsh Elixir
Created by maxmannen on 1/23/2023 in #support
Can´t get json-api to work when passing arguments.
Same error
21 replies