Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    igorvuleta
    @igorvuleta
    and how to use graphiql in your project, when I use it I get an empty array back
    Daniele Fontani
    @zeppaman
    The algorithm we implemented is more or less something like: scan all entities (we have a list of entities with field description), use such information to build the graphQL model, the intercept the graphQL query resolution and fetch data translating query. In your case, it should be something similar. Schema can be deducted by edmx or the model at runtime, then you have to implement dynamic query basing on graphql query. @keggyy can quickly tell you the files where there are the core functions, it shold be a good point to start from.
    digam
    @digam
    Hi @zeppaman , I am checking out GraphQL. it is working great with simple query. But, I am missing something out here. in _schema, for Country collection, i have defined Currency as object datatype and inserting currency as following snapshot.
    image.png
    image.png
    I have tried different combinations like giving Reference or ObjectId. but not able to get currency from Country Collection in GraphQL.
    I am new to mongo and graphQL both and trying to integrate rawCMS with marmelab/react-admin. Thank you.
    keggyy
    @keggyy

    Hi Igor,
    I think that using reflection is possible to build a graphQL model starting from DbContenxt (for example using entity framework like ORM). Our solution starts fetching model from _schema collection and translates result on GraphQL model.
    GraphQLQuery is the class that builds a model, you can change this class with something like this:
    '''
    public GraphQLQuery(DbContext ctx)
    {
    Name = "Query";
    //Create exstencion to dbcontext that list all registred entity like Type
    //key should be you entity descriptor
    foreach (var key in ctx.Entities)
    {
    //CollectionType is the class that build GraphQL model from entity Type
    //Inside this class use reflection for map entity property type to GraphQL type
    CollectionType type = new CollectionType(key, ctx.Entities, graphQLService);
    ListGraphType listType = new ListGraphType(type);

                    AddField(new FieldType
                    {
                        Name = metaColl.CollectionName,
                        Type = listType.GetType(),
                        ResolvedType = listType,
                        Resolver = new JObjectFieldResolver(graphQLService),
                        Arguments = new QueryArguments(
                            type.TableArgs
                        )
                    });
                }
            }

    '''
    Then it is necessary to change JObjectFieldResolver, in this class the GraphQL query is translated to entity query, you should change BuildMongoQuery method and build linq query for your HORM (this query is sent to CRUD service, for simplicity I think that you can execute query directly here).
    Now you should change the NameFieldResolver, this class retrieve the value from property name, you can use something like this
    src.GetType().GetProperty(propName).GetValue(src)
    Our implementation work with JObject for simplicity, but I think that you can work with object like abstract class
    I hope I explained myself in some way :-)

    keggyy
    @keggyy
    Hi @digam
    on NOSQL db is not recommended related different collection, for your purpose you can use a model like this
    2019-08-24 07_06_49-Window.png
    Daniele Fontani
    @zeppaman
    @keggyy @digam the solution that embeds the related entity into a subobject is functional. But, the solution of storing the id of currency into record should work anyway, returning only the key and not the whole object. Maybe there is some limitation about object Id field mapping into graphql json resolver? in case just open an issue on Github
    igorvuleta
    @igorvuleta
    @zeppaman @keggyy Thank you very much I'll try to setup it, from what I read here it shouldn't be that hard.
    digam
    @digam
    Thank you @keggyy @zeppaman
    igorvuleta
    @igorvuleta
    Hey @keggyy I've found a simmilar interpretation like yours but for SQL, the implementation is almost the same, altho because I am working with a custom ORM I need to adjust it to my needs, but there is one exception I get which is really wierd, it seems that when my dbMetadata is read, the rootquery asks for it again, and I get the exception that a field is already existing in the type system, do you perhaps know what could that be?
    keggyy
    @keggyy
    Hi Igor, sorry for the delay....mmm... I had the same problem when I had to write a bad schema on mongo collection, but I have added the same field much time. In your case how many times is called GraphQLQuery constructor?
    igorvuleta
    @igorvuleta
    @keggyy it is ok now I resolved it, the bug was in a method which was translating names, and in a few tabels that I got there is a dictionary with all the tables and names, and some tables have the value like the key, the problem I am now strugguling with is that I have to many tables and only to get the schema up and runing I require 2GB of RAM, I have got around 771 table with more then 3000 fields and I don't know how to resolve that issue, any help would be appreciated.
    igorvuleta
    @igorvuleta
    hey guys I managed to get my solution up and running the problems I had with the memory were cause I am on .net framework and not on .net core, some GC issues that weren't working so well are resolved, I have made also a custom resolve object which can return me a object or a list via my orm, but now I am facing the problem on how to fetch the actual relationships I guess that evena nosql database has some kind of relational data right? Do you have any insights about that?
    Daniele Fontani
    @zeppaman
    2019-11-20 18_56_10-Creare da se _ Spreadshirt.png
    Just a non-technical question... In your honest opinion, the gorilla should be centered or trying to exiting the logo like in this version?
    keggyy
    @keggyy
    for t-shirt maybe centered is better, but I wouldn't change logo for t-shirt
    marcuson
    @marcuson

    for t-shirt maybe centered is better, but I wouldn't change logo for t-shirt

    I agree with @keggyy

    Daniele Fontani
    @zeppaman
    sorry, first bulk is already sent to production. tshirt and cups will be available since december 5th.
    chan18
    @chan18
    hi guys.
    Daniele Fontani
    @zeppaman
    hi @chan18 welcome to the chat and sorry for this delay. I see you already forked the project. Did it start on your local? Can we schedule a talk to make an introduction to you?
    marcuson
    @marcuson
    hi @chan18, if you'd like to approach RawCMS on FE side, we have a good-to-start issue here: arduosoft/RawCMS#128
    chan18
    @chan18
    @marcuson sure.
    chan18
    @chan18
    @marcuson top bar you mean this(https://vuetifyjs.com/en/components/app-bars) but on the center, arduosoft/RawCMS#128
    i totaly misunderstood even though the screen shot showes it all.
    chan18
    @chan18
    @marcuson hi
    image.png
    how did you moved the title on topbar to center.
    i dont see any helper vuetify css classes doing it!
    The, Entities is on the center of the topbar.
    @marcuson
    did you used any class.
    class i mean css class
    marcuson
    @marcuson
    @chan18 that was just an example image I made, but you can use a <v-spacer></v-spacer>, check this StackOverflow question: https://stackoverflow.com/questions/56905360/center-v-toolbar-title
    chan18
    @chan18
    @marcuson that will work. Thank you.
    Daniele Fontani
    @zeppaman
    Hi all, a new release comes out! RawCMS is now easily deployable using docker-compose, Heroku or Kubernetes. It is self-installing and has an intuitive UI now. Does anyone have 5 minutes for testing it and give us some feedback?
    for who don't' want to spend time with "docker-compose up" a live demo is available
    all information is in the main project page https://github.com/arduosoft/RawCMS
    abimael
    @abimael-o-o
    @zeppaman @keggyy Hi, I'm new to this so I'm sorry for my lack of basics. How do I setup my local env? I commented on issue #184.
    ranganayakee
    @ranganayakee
    @zeppaman -
    I am looking at Issue #143. For starters, do you want the content in Index.cshtml body to be moved to About.cshtml ?
    Daniele Fontani
    @zeppaman
    Hi @ranganayakee, inside the repo, there are two applications. One asp.net API that handles the backend, and one single page application made in vue.js for the frontend. The index.cshtml has to be left to make the backend app consistent. A simple way to start the task is to take HTML markup from backend and copy to the frontend page. In the task, it should be already the path of the two files. Then, after some fix that may be necessary to the layout, it should be ok. If do you prefer a quick introduction to the project and help to make all start in your local, just write to me in private.
    Daniele Fontani
    @zeppaman
    HI all, this evening at 18.30 GMT there will be a conference to announce RawCMS and speak about best practices on asp.net development. You can join it using this link https://zoom.us/j/876094672
    March 10, 18.30 PM GMT
    invite your friends ;-)
    Daniele Fontani
    @zeppaman
    Thanks to the effort and the commitment from everybody, we now have a stable and working platform. Now it's time to take steps forward and think to the future.
    According to the original vision, we are going to starting a new roadmap for the v2 of the project. Features and improvements will enhance all the good we have done until now.
    We will work on many sides to make the tool ready for being used in production.
    I would organize a Meeting for this week were present the plan and announce the bigger news. The date will be chosen as the closer option with more attendees. Please fill the form below (doublecheck timezone before answer).
    https://doodle.com/poll/xm43dpzphw8vbbw2
    Lucas Martins
    @lucasm.17_gitlab
    hi everyone! @zeppaman can you help me geting start?