by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 23 20:32

    imolorhe on staging

    Allow localhost in CSP (compare)

  • Sep 23 02:37
    unfurl-links[bot] commented #1304
  • Sep 23 02:37
    khacminh commented #1304
  • Sep 22 18:04
    imolorhe commented #1304
  • Sep 22 10:39
    SJayashankar commented #1304
  • Sep 22 10:31
    imolorhe commented #1304
  • Sep 22 05:17
    khacminh commented #1304
  • Sep 22 05:17
    khacminh commented #1304
  • Sep 22 05:17
    khacminh commented #1304
  • Sep 20 16:39
    lancedouglas1 closed #1351
  • Sep 20 16:39
    lancedouglas1 commented #1351
  • Sep 20 16:29
    open-collective-bot[bot] commented #1351
  • Sep 20 16:29
    welcome[bot] commented #1351
  • Sep 20 16:29
    lancedouglas1 opened #1351
  • Sep 20 03:50
    stale[bot] labeled #1309
  • Sep 20 03:50
    stale[bot] labeled #1276
  • Sep 20 03:50
    stale[bot] commented #1309
  • Sep 20 03:50
    stale[bot] commented #1276
  • Sep 19 21:33
    aarona commented #1349
  • Sep 19 16:47

    imolorhe on master

    Correct object handling in alta… Merge pull request #1339 from c… Added autocomplete to prereques… and 12 more (compare)

Samuel
@imolorhe
@arshad111 I can't say for sure. Did you try running the code in the repo without modifying it first? Maybe you made a mistake when implementing it? If I'm to guess I would think the issue is coming from graphql-server/config/graphql/types/Mutation.type.yaml where you "resolve" the mutation query with args as input of type UpdateUserProfileInput
Gutemberg Ribeiro
@galvesribeiro
yo folks
great work on Altair
finally made me free from that buggy GraphQL Playground
I have a question
I was looking into the docs to understand how the Subscriptions are supported but the page is mostly empty
can someone point me on directions on how it is supposed to work?
Samuel
@imolorhe
@galvesribeiro What do you want to know? Usually you just write your subscription query, and send the request. It would ask you to provide the subscription URL
Gutemberg Ribeiro
@galvesribeiro
ahh ok
Samuel
@imolorhe
You can also specify the subscription URL yourself before sending the request
Gutemberg Ribeiro
@galvesribeiro
ok good
Thanks! will try it out
Scott
@smolinari
Hey. I was wondering, is Altair configurable at all? Like changing font size and general colors? I'm using the express middleware.
mileniasm
@mileniasm
Hi @imolorhe have there been any updates to the client recently? I restarted my Mac and now Altair opens blank for me, I can't open Preferences either
Samuel
@imolorhe
Yes Altair is configurable. @smolinari (sorry for the late reply. Gitter doesn't send mobile notifications)
@mileniasm no updates have been made recently. I believe I'm resolving this over Twitter already? 🙂
mileniasm
@mileniasm
Yes! This has been resolved, thanks @imolorhe!
Scott
@smolinari
@imolorhe - Thanks for replying, even late. :) Are there any docs you know of that explain where the config can be changed? Or point me to the area of code I would need to look at to understand what is configurable?
2 replies
Kytila
@Kytila
hi, can anyone help, trying to write my own plugin but can not connect it locally?
Samuel
@imolorhe
@smolinari again! Sorry for the late reply 🤦🏾‍♂️ for some reason I only get to see your message when I check someone else's. Altair has a settings modal you can configure with https://altair.sirmuel.design/docs/features/settings-pane.html
@Kytila hello, have your checked the guide already?
@Kytila what kind of plugin are you trying to create?
7 replies
Scott
@smolinari
@imolorhe - Actually I just saw this in the docs.
"Support for custom theme is coming very soon."
That's what I'd be interested in. :)
5 replies
Khanh Nguyen
@kentechfox
Hello guys, I'm new to Altair GraphQL. My CTO send me a backup file to import to my Altair, its extension is agbkp. But Altair crashes immediately when I restore the file.
2 replies
Anyone can advise please?
Yank Carlos
@nubo-dev
hello!
i'm make a request with altair, and the response give me invalid token, why? Im using header type "Authotization": "Bearer ..."
1 reply
Tri Nguyen
@mankinchi

hey guys, I'm confusing of how to set up 'X-GraphQL-Event-Stream' for altair app to automatically pull the schema. Please help. This is my current code

app.use('/graphql', (req, res, next) => {
    res.set('Access-Control-Expose-Headers', 'true');
    res.set('X-GraphQL-Event-Stream', 'true');
    next();
}, graphqlHTTP({
    schema,
    // rootValue: root,
    graphiql: true,
}));

I'm using express & express-graphql

is it more than just a header?
Samuel
@imolorhe
@mankinchi Yes it is more than the header. You need to actually implement the event stream for your service
5 replies
lancedouglas1
@lancedouglas1

Hello all, I'm looking for help creating Altair instantiations based on customer data (i.e. the launching of Altair on our site will have logged-in customer-specific headers, saved queries, and environments.)

Here's the challenge I'm running into:

  1. I can't find an example of a working initialEnvironments variable. I've read the code and created a test config and it has zero impact to the launched Altair instance. ```var initialEnvironments= {

     base: {
             title: “Company-Name GraphiQL",
             variables: {
                     "app-name": “Company-Name Workbench",
                     "app-version": "1.0.0",
                     headers: {
                             “x-special-service-key": "asdf"
                     }
             }
     },
     subEnvironments: [
             {
                     title: "Development",
                     variables: {
                             “x-special-api-key": "zxcv"
                     },
                     headers:{
                             supertest:"097"
                     }
             },
             {
                     title: "Staging",
                     variables: {
                             headers: {
                                     “x-special-api-key": "1234"
                             }
                     }
             }
     ]

    }```

  2. initialHeaders seems to break out every character of the header name instead of as a single string. e.g. adding initialHeaders: {"x-special-service-key":"test1","x-speical-api-key":"test2"}results in dozens of headers in the launched instance representing one header for each character in the header names provided. I tried many different ways of writing that object but it always results in the same way.

  3. I thought of a workaround, where I would add an initialPreRequestScript could actually call an API, pull the headers, and use the AltairGraphQ object in the browser to set the headers and environment, but anything more than just a console.log('something'); as the initial script fails with errors (sorry I'll have to go recreate the issue if this is a viable option). Is this a viable option to set headers (global) and environments (with specific headers)?

  4. I also want set the explorer (and thus experimental plugin support) active on each launch without the user having to change it in the settings.

  5. Does anyone have experience with saving "saved queries/collections" to database during the session for future use and then clearing all the site data from browser upon exit Altair so that there isn't any lingering data in the browser? I'd like to make the experience much more natural for the users.

  6. this is an amazing project (and I am a backer as of today). I see it as one of the best available and hope to see it solidify as the top choice in the market. Thus I'd like to help with documentation and vidtorials to help others onboard and use Altair more effectively and efficiently.

I'm using altair-express-static directly within node (v12.18.3) npm (6.14.6), on Mac and Chrome.

Samuel
@imolorhe
Hello @lancedouglas1, that's a lot of information in one message :smile: First thanks for supporting the project! Means a lot.
I'll try to go through the points one after the other
  1. Could you verify that there isn't data already stored in the local storage for that instance? Altair only instantiates the data the first time it is run (it then preserves the state to local storage for subsequent runs). This is the first thing I would check
2 replies
Samuel
@imolorhe
2) That is weird 🤔 I'll take a closer look. Perhaps would be better to create an issue for a more dedicated conversation on this topic. I know there was an issue with the way we handle objects passed in as initial data which was recently fixed by @codeitcody in #1339. Perhaps these are related and the issue is already resolved. By the way, how do you use Altair, with altair-static?
5 replies
3) At the moment, you can only set environment variables via the pre-request script. While this can be used as a workaround, ideally you should go through the actual initial config options that you pass to Altair.
Samuel
@imolorhe
4) At the moment, the plugin system is still in beta (I haven't been confident enough to release it because I haven't received much issues from it yet). However, you can still enable this via the initialSettings config option. You only need to set enableExperimental to true, and set the plugin.list to [ 'altair-graphql-plugin-graphql-explorer' ] and that should work. Again, note that this will only work if the instance of Altair is new (no data stored in local storage)
4 replies
5) I'm not sure I understand this use case. Could you explain a bit more?
4 replies
6) Thanks again for supporting the project. I also appreciate the gesture. Contributing to the docs is actually one of the recommended ways of contributing to the project: https://altair.sirmuel.design/docs/contributing.html
@lancedouglas1 Hope I was able to address the questions :smile:
lancedouglas1
@lancedouglas1
@imolorhe thank you so much! I've started threads on all of them.
Do you happen to have an example initialSettings object fully intact as a single example of all possible features of the init settings being used? that would be very valuable.
Samuel
@imolorhe
Btw in case gitter doesn't really work for most people, I'm open to any better collaboration platforms that is much better
lancedouglas1
@lancedouglas1

Btw in case gitter doesn't really work for most people, I'm open to any better collaboration platforms that is much better

@imolorhe :) you must have seen my deleted comment on github... I recommended spectrum.chat because graphql has an active community up there but even free slack or discord works better. I think the requirements are the searchability, uploading files and examples, private conversations, and then creating channels for capturing documentation.

1 reply
Samuel
@imolorhe
Created a spectrum.chat community https://spectrum.chat/altair-graphql
Kytila
@Kytila
@imolorhe Could you please provide a step-by-step example with plugin connection, for example altair-graphql-plugin-birdseye plugin? I still can't get the plugin to appear in altair. An example of how I specify it - url: altair-graphql-plugin-birdseye @ 1 :: [url] -> [http: // localhost: 8080 /].
14 replies
digeomel
@digeomel
Hi, has anyone managed to get the font family setting in the extension to work? I'm setting it to Consolas and it keeps being overwritten. I've found an old Github issue about it, which mentions setting it to "monospace", but it has no effect either. Thanks in advance :)
Samuel
@imolorhe
@digeomel How are you setting the font family?