question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

createConfiguration could use the path in the sync url

See original GitHub issue

Goals

When using createConfiguration to create a configuration that syncs to something else than the /default Realm it would be nice if the user had a way to specify the path of the Realm on the server.

Expected Results

Either the config.path could be appended to the server URL or perhaps a second string argument to the method.

Actual Results

Calling createConfiguration on a user always returns a configuration object with the /default path.

Steps to Reproduce

  1. Authenticate a user
  2. Call user.createConfiguration({ path: "whatever" }), log the result and observe that it has /default as the realm path of the sync.url.

Version of Realm and Tooling

  • Realm JS SDK Version: 2.14.2
  • Node or React Native: Node
  • Client OS & Version: N/A
  • Which debugger for React Native: N/A

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nirinchevcommented, Aug 23, 2018

I think that would be very weird API as you’ll have two ways of specifying the same thing. I would rather handle relative urls in the sync object:

user.createConfiguration({
  sync: {
    url: "/whatever"
  }
});

We can easily detect that and concatenate with the user url.

0reactions
kraenhansencommented, Nov 28, 2018

I just had a need for this again today 😃 Glad to see it’s in active progress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Initializing the Configuration - Revenera Product Documentation
The createConfig() method creates a configuration for the SDK instance. ... You can get this URL from the Developer Zone once you login...
Read more >
using podsync for people who don't know very well ... - GitHub
b. insert YouTube channel url; pull and run podsync files via docker; open web browser and go http://localhost:8080, you will see xml files,...
Read more >
Share Data with Cluster Linking on Confluent Cloud
Use Cluster Linking to share data across Kafka clusters in a global mesh, including hybrid cloud, migration, and failover use cases.
Read more >
config - Obtain credentials and create configuration file
When you run gsutil config -e , you are prompted for the path to your private key file and, if not using a...
Read more >
Amazon MSK configuration operations - AWS Documentation
This topic describes how to create custom MSK configurations and how to perform operations on them. For information about how to use MSK...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found